Skip to content

Commit 5bf710b

Browse files
Artemnetman92
Artem
authored andcommitted
docs(ngRepeat): clarify 'as' microsyntax usage
Closes angular#11087
1 parent 7148b2d commit 5bf710b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ng/directive/ngRepeat.js

+5
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@
144144
* For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after
145145
* the items have been processed through the filter.
146146
*
147+
* Please note that `as [variable name] is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end
148+
* (and not as operator, inside an expression).
149+
*
150+
* For example: `item in items | filter : x | orderBy : order | limitTo : limit as results` .
151+
*
147152
* @example
148153
* This example initializes the scope to a list of names and
149154
* then uses `ngRepeat` to display every person:

0 commit comments

Comments
 (0)