From 912dcac08b215ae49c9f4600e839facee7637242 Mon Sep 17 00:00:00 2001 From: Artem Date: Tue, 17 Feb 2015 11:42:43 +0100 Subject: [PATCH] docs(ngRepeat): there is no clarification about 'as' as [variable name] is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end (and not as operator, inside an expression) There is no such clarification. It would be better to make such addition in it. --- src/ng/directive/ngRepeat.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index 5214acf86345..8da2906447d6 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -143,6 +143,11 @@ * * For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after * the items have been processed through the filter. + * + * * `as [variable name] is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end + * (and not as operator, inside an expression). + * + * For example: `item in items | filter : x | orderBy : order | limitTo : limit as results` . * * @example * This example initializes the scope to a list of names and