您的位置:首页 > Web前端 > AngularJS

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

2017-09-21 14:57 555 查看
[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}}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  angular
相关文章推荐