ngRepeat Angular’s ngRepeat directive provides a simple way to iterate over collections to produce HTML dynamically. You probably know it when you have ever worked with lists or arrays in your Angular app:
|
<ul> <li ng-repeat="person in controller.getAllPersons()"> Name: {{ person.name }} </li> </ul> |
Drawbacks However, there is a small drawback when working with ngRepeat: You can only iterate over collections of the current scope. […]