From 2e9d7cc6cb9665fa00d7796b2a51fb9a2c41af1a Mon Sep 17 00:00:00 2001 From: Wojciech Krzystek Date: Fri, 3 Jan 2014 21:22:39 +0100 Subject: 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 --- src/ng/directive/ngRepeat.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ng/directive/ngRepeat.js') 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 -- cgit v1.2.3