docs(error/ngRepeat/dupes): fix typo

Closes #5610
This commit is contained in:
Drew Perttula 2014-01-02 21:18:02 -08:00 committed by Igor Minar
parent cf686285c2
commit 6a6f71f238

View file

@ -13,7 +13,7 @@ For example the issue can be triggered by this *invalid* code:
<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: