Devi chappidi
Devi chappidi

Reputation: 196

Can we display duplicate items in an array with ng-repeat in angularjs?

I have an array with repeated items.I want to go through all the items in my array with ng-repeat.but Iam unable to display the duplicate items which are repeated values in my array.how can i display the duplicate items with ng-repeat?

Upvotes: 1

Views: 565

Answers (1)

Pankaj Parkar
Pankaj Parkar

Reputation: 136144

You could use track by $index after your ng-repeat

ng-repeat="item in items track by $index"

I'll be able to provide more isight if you add code to OP.

Upvotes: 3

Related Questions