find the index position of filtered value in the original array
Try this one:
<div ng-repeat="person in data | filter: {id:20}">
{{data.indexOf(person)}}
</div>
Output: 2
Demo Fiddle
find the index position of filtered value in the original array
Try this one:
<div ng-repeat="person in data | filter: {id:20}">
{{data.indexOf(person)}}
</div>
Output: 2
Demo Fiddle