diff options
| author | Misko Hevery | 2013-03-19 22:27:27 -0700 |
|---|---|---|
| committer | Misko Hevery | 2013-03-29 23:01:52 -0700 |
| commit | 61f2767ce65562257599649d9eaf9da08f321655 (patch) | |
| tree | cf9c6809bbee62d19e04961f53d5c89bab9dd663 /test/ng/directive/ngClassSpec.js | |
| parent | 5eb968553a1130461ab8704535691e00eb154ac2 (diff) | |
| download | angular.js-61f2767ce65562257599649d9eaf9da08f321655.tar.bz2 | |
feat(ngRepeat): add support for custom tracking of items
BREAKING CHANGE:
It is considered an error to have two items produce
the same track by key. (This was tolerated before.)
Diffstat (limited to 'test/ng/directive/ngClassSpec.js')
| -rw-r--r-- | test/ng/directive/ngClassSpec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ng/directive/ngClassSpec.js b/test/ng/directive/ngClassSpec.js index 69afef7a..d4bd76fe 100644 --- a/test/ng/directive/ngClassSpec.js +++ b/test/ng/directive/ngClassSpec.js @@ -249,7 +249,7 @@ describe('ngClass', function() { it('should update ngClassOdd/Even when model is changed by filtering', inject(function($rootScope, $compile) { element = $compile('<ul>' + - '<li ng-repeat="i in items" ' + + '<li ng-repeat="i in items track by $index" ' + 'ng-class-odd="\'odd\'" ng-class-even="\'even\'"></li>' + '<ul>')($rootScope); $rootScope.items = ['a','b','a']; |
