[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify uniq
2014-07-31 09:59
323 查看
angularjs 使用ng-repeat报错
[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys
发现是因为相同的内容重复引起,解决方案
在ng-repeat后面加上
<div ng-init="words = ['高校','高校','高校']" ng-repeat="word in words"> {{word}} </div>
[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys
发现是因为相同的内容重复引起,解决方案
<div ng-init="words = ['高校','高校','高校']" ng-repeat="word in wordstrack by $index"> {{word}} </div>
在ng-repeat后面加上
track by $index
相关文章推荐
- [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify uniq
- [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify uni
- [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify uniq
- [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify uniq
- ng-repeat出现环路输出Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique
- ng-repeat循环输出出现Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique
- Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to speci
- Angular报错[ngRepeat:dupes] Duplicates in a repeater are not allowed.
- [ISSUE]Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed.
- cvc-complex-type.3.2.2: Attribute 'singleton' is not allowed to appear in element 'bean
- Duplicates in a repeater are not allowed in AngularJS
- Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly
- Host 'xxx.xx.xx-xx.xx.com' is not allowed to connect to this MySQL serverConnection closed by foreig
- Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly
- cvc-complex-type.3.2.2: Attribute 'singleton' is not allowed to appear in element 'bean'
- Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly
- Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- Access数据库中Microsoft JET Database Engine (0x80004005) Could not use ''; file already in use.的解决方法
- Host 'HostName' is not allowed to connect to this MySQL server