Skip to content

Commit fccac4a

Browse files
alexbradAlex Brad
authored and
Alex Brad
committed
perf(repeatParserService): track groups by name
Use "track by" to track groups of choices by their name instead of the $$hastKey. This way, existing items don't have to be re-rendered when the array of items changes. Closes angular-ui#1721
1 parent d1994fb commit fccac4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uisRepeatParserService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ uis.service('uisRepeatParser', ['uiSelectMinErr','$parse', function(uiSelectMinE
7777
};
7878

7979
self.getGroupNgRepeatExpression = function() {
80-
return '$group in $select.groups';
80+
return '$group in $select.groups track by $group.name';
8181
};
8282

8383
}]);

0 commit comments

Comments
 (0)