Angular报错[ngRepeat:dupes] Duplicates in a repeater are not allowed.

[ngRepeat:dupes] Duplicates in a repeater are not allowed. 

原因:

item里有重复的值
添加track by $index

ul.OH363D-Oi-d(aria-hidden='true', style='{{usesPermissionsizestyle}}')
              li(ng-repeat='item in appinfo.usesPermission track by $index',data-value="{{item}}")
                | {{item|translate}}

猜你喜欢

转载自blog.csdn.net/a19891024/article/details/78052072