Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor
Web Browser
Learn
Directives

Built-in and Custom Directives

We know that AngularJS comes with a few built-in directives like ng-repeat and ng-click.

We've seen that AngularJS makes it possible to create your own custom directives, such as <app-info>.

We can use Angular's built-in directives together with custom directives to create more readable apps.

For reference, here's how to use ng-repeat:

<div ng-repeat="product in products"> <img ng-src="{{ product.cover }}"> <p class="title">{{ product.name }}</p> </div>
Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.