diff options
| author | Misko Hevery | 2013-04-11 16:28:42 -0700 |
|---|---|---|
| committer | Misko Hevery | 2013-04-11 23:06:07 -0700 |
| commit | a0bc71e27107c58282e71415c4e8d89e916ae99c (patch) | |
| tree | 774f767d2a780c32bed407e00637a97f1b9ac023 /docs | |
| parent | a491ea3791eb56e9932e12ded1395e0e5e99355a (diff) | |
| download | angular.js-a0bc71e27107c58282e71415c4e8d89e916ae99c.tar.bz2 | |
fix(ngRepeat): prevent initial duplicates
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/cookbook/mvc.ngdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/cookbook/mvc.ngdoc b/docs/content/cookbook/mvc.ngdoc index ff067f61..b1128d8e 100644 --- a/docs/content/cookbook/mvc.ngdoc +++ b/docs/content/cookbook/mvc.ngdoc @@ -85,8 +85,8 @@ view. Next Player: {{nextMove}} <div class="winner" ng-show="winner">Player {{winner}} has won!</div> <table class="board"> - <tr ng-repeat="row in board" style="height:15px;"> - <td ng-repeat="cell in row" ng-style="cellStyle" + <tr ng-repeat="row in board track by $index" style="height:15px;"> + <td ng-repeat="cell in row track by $index" ng-style="cellStyle" ng-click="dropPiece($parent.$index, $index)">{{cell}}</td> </tr> </table> |
