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

Commit 68e5644

Browse files
committed
refactor(rating): use track by in template
Closes #1724
1 parent a294c87 commit 68e5644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/rating/rating.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">
2-
<i ng-repeat="r in range" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || 'glyphicon-star') || (r.stateOff || 'glyphicon-star-empty')">
2+
<i ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || 'glyphicon-star') || (r.stateOff || 'glyphicon-star-empty')">
33
<span class="sr-only">({{ $index < value ? '*' : ' ' }})</span>
44
</i>
55
</span>

0 commit comments

Comments
 (0)