track by $index causes a bunch of empty objects

134 views Asked by At

I have an error:

ngRepeat:dupes Duplicate Key in Repeater

To solve that problem, I used track by $index like this:

contact in contacts track by $index

but the thing is that I have new error like this.

enter image description here

what happened to my app now?

0

There are 0 answers