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

Commit

Permalink
Track groups by their name.
Browse files Browse the repository at this point in the history
By using "track by", existing items don't have to be re-rendered when the array changes.
  • Loading branch information
alexbrad authored Jul 12, 2016
1 parent d1994fb commit 12e25fe
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 12e25fe

Please # to comment.