The `ngRepeat` directive instantiates a template once per item from a collection. Each template instance gets its own scope, where the given loop variable is set to the current collection item, and `$index` is set to the item index or key.
The ngRepeat directive instantiates a template once per item from a collection. Each template instance gets its own scope, where the given loop variable is set to the current collection item, and $index is set to the item index or key.
Special properties are exposed on the local scope of each template instance, including $index, $first, $middle and $last.
Usage
As an attribute
<ANY ng-repeat="{repeat_expression}">
...
</ANY>
Directive info
- This directive creates a new scope.
- This directive executes at priority level 1000.
Animations
enter- when a new item is added to the list or when an item is revealed after a filterleave- when an item is removed from the list or when an item is filtered outmove- when an adjacent item is filtered out causing a reorder or when the item contents are reordered
References: