https://github.com/normandy72/ng-repeat
ng-repeat function in AngularJS. Coursera course "Single Page Web Applications with AngularJS" by Yaakov Chaikin.
https://github.com/normandy72/ng-repeat
angular angularjs html html5 javascript js
Last synced: about 2 months ago
JSON representation
ng-repeat function in AngularJS. Coursera course "Single Page Web Applications with AngularJS" by Yaakov Chaikin.
- Host: GitHub
- URL: https://github.com/normandy72/ng-repeat
- Owner: Normandy72
- Created: 2023-01-06T17:01:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T18:16:58.000Z (over 3 years ago)
- Last Synced: 2025-12-04T20:56:22.406Z (6 months ago)
- Topics: angular, angularjs, html, html5, javascript, js
- Language: HTML
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
* `ng-repeat` is a directive that extends the functionality of HTML elements it's applied to.
* `ng-repeat` behaves very similarly to `for each` construct in other languages. The way it works is, ng-repeat is an attribute on some element, and then you specify some item, which is a variable, in some collection, and collection should be some kind of a property. Usually the scope service and each item can now be used in interpolation as an item in the collection at a particular index of iteration.
* `ng-repeat`also exposes a special `$index` property to the body of its host tag. And what it does, is that $index holds the numeric index of the current item in the loop. And you're able to then use it in your interpolation or in some calculations inside of the HTML template.