aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWojciech Krzystek2014-01-03 21:22:39 +0100
committerIgor Minar2014-01-03 16:07:26 -0800
commit2e9d7cc6cb9665fa00d7796b2a51fb9a2c41af1a (patch)
treefaff526026b110c3beb41a6c4437d5bee0bdfc6c /src
parent32cc6cbb6f06f25aaa7f054a91ac9eb6468f49fc (diff)
downloadangular.js-2e9d7cc6cb9665fa00d7796b2a51fb9a2c41af1a.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/ng/directive/ngRepeat.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js
index 15f86baa..43db58ba 100644
--- a/src/ng/directive/ngRepeat.js
+++ b/src/ng/directive/ngRepeat.js
@@ -20,6 +20,8 @@
* | `$even` | {@type boolean} | true if the iterator position `$index` is even (otherwise false). |
* | `$odd` | {@type boolean} | true if the iterator position `$index` is odd (otherwise false). |
*
+ * Creating aliases for these properties is possible with {@link api/ng.directive:ngInit `ngInit`}.
+ * This may be useful when, for instance, nesting ngRepeats.
*
* # Special repeat start and end points
* To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending