When I am using filter the index of the element is changing when i delete an element it is deleting another element how to get the exact $index of the element?
<div class="repeater" ng-repeat="student in students | filter : query">
<button type="button" class="close pull-right" ng-click="remove($index)">×</button>
$scope.remove = function(id){
$scope.students.splice(id,1);
};