Skip to content

Commit 664e5fa

Browse files
vucalurjamesdaily
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 angular#5622
1 parent ed8b07a commit 664e5fa

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)