Reputation: 109
Please help me in fetching data from database using Angular JS
.
Error prompting in the console
[ngRepeat:dupes] http://errors.angularjs.org/1.2.25/ngRepeat/dupes?p0=u%20in%20o&p1=string%3A%0D&p2=%22%5Cr%22
please check with below screen-shot for your reference.
Upvotes: 0
Views: 163
Reputation: 1436
Most likely an issue with duplicates in your ng-repeat. From the Angular website:
<div ng-repeat="value in [4, 4]"></div>
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.
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>
Upvotes: 1