ng-repeat built-in properties¶
The ng-repeat directive in AngularJS exposes several local variables within the iteration scope that provide specific metadata about the current item. These variables are available for use directly within the HTML template where ng-repeat is declared.^[600-developer-frontend-angular-angular-01.md]
Available Properties¶
$index: Represents the zero-based index of the current item in the collection.$first: A boolean value that evaluates totrueif the current item is the first element in the collection.$last: A boolean value that evaluates totrueif the current item is the last element in the collection.^[600-developer-frontend-angular-angular-01.md]
Sources¶
600-developer-frontend-angular-angular-01.md
Related¶
- [[AngularJS]]