mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-10 07:44:43 +00:00
parent
cf686285c2
commit
6a6f71f238
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ For example the issue can be triggered by this *invalid* code:
|
||||||
<div ng-repeat="value in [4, 4]"></div>
|
<div ng-repeat="value in [4, 4]"></div>
|
||||||
```
|
```
|
||||||
|
|
||||||
To resolve this error either ensure that the items in the collection have unique identity of use the `track by` syntax to specify how to track the association between models and DOM.
|
To resolve this error either ensure that the items in the collection have unique identity or use the `track by` syntax to specify how to track the association between models and DOM.
|
||||||
|
|
||||||
To resolve the example above can be resolved by using `track by $index`, which will cause the items to be keyed by their position in the array instead of their value:
|
To resolve the example above can be resolved by using `track by $index`, which will cause the items to be keyed by their position in the array instead of their value:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue