Angular ng-repeat Error “Duplicates in a repeater are not allowed.”

后端 未结 10 2563
青春惊慌失措
青春惊慌失措 2020-11-22 06:11

I am defining a custom filter like so:

10条回答
  •  时光取名叫无心
    2020-11-22 06:37

    Just in case this happens to someone else, I'm documenting this here, I was getting this error because I mistakenly set the ng-model the same as the ng-repeat array:

     
    

    Instead of:

    
    

    I checked the array and didn't have any duplicates, just double check your variables.

提交回复
热议问题