This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-repeat fails for object iterations with identical values #1389
Closed
Description
Noted by Joshua Heiland on the angularjs mailing list. His test case: http://jsfiddle.net/87fjX/
A shorter test case http://jsfiddle.net/68CYt/1/
Problem still persists in HEAD of master branch. From a brief examination, looks like a logic bug in the ng-repeat directive here: https://github.com/angular/angular.js/blob/master/src/ng/directive/ngRepeat.js#L117-135
Notably, you can't assume that you've already seen an element just because the value is the same.