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

Commit

Permalink
docs(ngRepeat): clarify 'as' microsyntax usage
Browse files Browse the repository at this point in the history
Closes #11087
  • Loading branch information
Artem authored and pkozlowski-opensource committed Feb 17, 2015
1 parent f627233 commit 49b54b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ng/directive/ngRepeat.js
Expand Up @@ -144,6 +144,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.
*
* 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
* (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
* then uses `ngRepeat` to display every person:
Expand Down

0 comments on commit 49b54b0

Please sign in to comment.