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

Commit 12e25fe

Browse files
authored
Track groups by their name.
By using "track by", existing items don't have to be re-rendered when the array changes.
1 parent d1994fb commit 12e25fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uisRepeatParserService.js

Lines changed: 1 addition & 1 deletion
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)