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

docs(error/dupes): Little fix in explanation text. #9673

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/error/ngRepeat/dupes.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ For example the issue can be triggered by this *invalid* code:

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:
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:

```
<div ng-repeat="value in [4, 4] track by $index"></div>
Expand Down