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>
Report a Bug
If you see a bug or any other issue with this page, please report it here.