Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
perf(repeatParserService): track groups by name
Browse files Browse the repository at this point in the history
Use "track by" to track groups of choices by their name instead of
the $$hashKey. This way, existing items don't have to be
re-rendered when the array of items changes.

Closes #1721, closes #1722
  • Loading branch information
alexbrad authored and user378230 committed Jul 15, 2016
1 parent d1994fb commit 1770038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uisRepeatParserService.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ uis.service('uisRepeatParser', ['uiSelectMinErr','$parse', function(uiSelectMinE
};

self.getGroupNgRepeatExpression = function() {
return '$group in $select.groups';
return '$group in $select.groups track by $group.name';
};

}]);

0 comments on commit 1770038

Please sign in to comment.