DotNET Schools

Blogs & Tutorials for Microsoft.NET and Leading web Technologies

ng-repeat Directive in AngularJS

ng-repeat directive is used on an array of objects to repeat an HTML element. We can use $index, $first, $last, $middle, $even, $odd with ngRepeat. Let try to understand it using examples.

Example 1:

  1. <ul>  
  2. <li data-ng-repeat="x in friends">  
  3.    {{ x }}  
  4. </li>  
  5. </ul>  


Read More >>


Loading