Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 2e9d7cc

Browse files
vucalurIgorMinar
authored andcommitted
docs(ngRepeat): add info about aliasing special properties of ngRepeat
This will safe peoples' time, since ngRepeat's docs, not ngInit's, is the first place where one would search for such info. Closes #5622
1 parent 32cc6cb commit 2e9d7cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ng/directive/ngRepeat.js

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* | `$even` | {@type boolean} | true if the iterator position `$index` is even (otherwise false). |
2121
* | `$odd` | {@type boolean} | true if the iterator position `$index` is odd (otherwise false). |
2222
*
23+
* Creating aliases for these properties is possible with {@link api/ng.directive:ngInit `ngInit`}.
24+
* This may be useful when, for instance, nesting ngRepeats.
2325
*
2426
* # Special repeat start and end points
2527
* To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending

0 commit comments

Comments
 (0)