Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 49b54b0

Browse files
Artempkozlowski-opensource
Artem
authored andcommittedFeb 17, 2015
docs(ngRepeat): clarify 'as' microsyntax usage
Closes #11087
1 parent f627233 commit 49b54b0

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)
This repository has been archived.