針對這種狀況AngularJS 提供了track by 來設定ng-repeat 的鍵值(追蹤ID). 下面的code 就設定了上面提到的$index 變數來當track id. <div ng-app="">.
確定! 回上一頁