1

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?

2
  • The solution probably involves a track by expression but without any code at all to work with, this question is impossible to answer with any confidence. Commented Mar 14, 2017 at 2:20
  • 1
    Possible duplicate of Angularjs ng-repeat array - duplicate values Commented Mar 14, 2017 at 2:25

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.