Angular-ngRepeat error

[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use ‘track by’ expression to specify unique keys. Repeater: {1} in {2}, Duplicate key

<td ng-repeat=“detail in details” ng-bind=“detail”></td>

change to

<td ng-repeat=“detail in details track by $index” ng-bind=“detail”></td>

reference

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *