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

Commit 40d4bb5

Browse files
artchIgorMinar
authored andcommitted
docs(ngRepeat): fix wrong paragraph order
These paragraphes are related to `track by`, not to `as alias`. Closes #9226
1 parent 9c99590 commit 40d4bb5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/ng/directive/ngRepeat.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@
100100
* For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements
101101
* will be associated by item identity in the array.
102102
*
103-
* * `variable in expression as alias_expression` – You can also provide an optional alias expression which will then store the
104-
* intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message
105-
* when a filter is active on the repeater, but the filtered result set is empty.
106-
*
107-
* For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after
108-
* the items have been processed through the filter.
109-
*
110103
* For example: `item in items track by $id(item)`. A built in `$id()` function can be used to assign a unique
111104
* `$$hashKey` property to each item in the array. This property is then used as a key to associated DOM elements
112105
* with the corresponding item in the array by identity. Moving the same object in array would move the DOM
@@ -119,6 +112,13 @@
119112
* For example: `item in items | filter:searchText track by item.id` is a pattern that might be used to apply a filter
120113
* to items in conjunction with a tracking expression.
121114
*
115+
* * `variable in expression as alias_expression` – You can also provide an optional alias expression which will then store the
116+
* intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message
117+
* when a filter is active on the repeater, but the filtered result set is empty.
118+
*
119+
* For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after
120+
* the items have been processed through the filter.
121+
*
122122
* @example
123123
* This example initializes the scope to a list of names and
124124
* then uses `ngRepeat` to display every person:

0 commit comments

Comments
 (0)