I have an array
$scope.answers=["","","",""]
means Array have multiple empty elements .
<li ng-repeat="item in answers "><input type="text" ng-model="item"/></li>
it throws error that duplicate values are not allowed in ng-repeat . if i use
<li ng-repeat="item in answers track by $index"><input type="text" ng-model="item"/></li>
then its working fine . but i want to use this without track by $index so that sorting on this is also work
Can anybody have idea about this