ng-repeat – AngularJS Keyword



ng-repeat is one of the most used AngularJS attribute. It iterate through an array and bind the view with each element. ng-repeat takes expression as argument.

In a word it works like foreach loop.

Example :

Click here to show the use of ng-repeat in a short project

<tr ng-repeat = “contact in contacts”>
<td>{{contact.name}}</td>
<td>{{contact.email}}</td>
<td>{{contact.phone}}</td>
</tr>

Leave a Reply