From 47a2a9829f0a847bbee61cd142c43000d73ea98b Mon Sep 17 00:00:00 2001 From: Rory Douglas Date: Mon, 27 May 2013 10:59:19 -0700 Subject: fix(ngRepeat): handle iteration over identical obj values Modifies default trackByIdFn to factor both key and value into hashKey for non-array primitive (i.e. index not provided) values Closes #2787 Closes #2806 --- test/ng/directive/ngRepeatSpec.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/ng/directive/ngRepeatSpec.js b/test/ng/directive/ngRepeatSpec.js index 6506e060..0d1833c8 100644 --- a/test/ng/directive/ngRepeatSpec.js +++ b/test/ng/directive/ngRepeatSpec.js @@ -89,6 +89,15 @@ describe('ngRepeat', function() { expect(element.text()).toEqual('misko:swe|shyam:set|'); }); + it('should iterate over an object/map with identical values', function() { + element = $compile( + '