title: AngularJS: find the index position of filtered value in the original array
body: <pre><code>$scope.data = [
      {
      "name": "Jim",
      "id" : 25
      },
      {
      "name": "Jerry",
      "id": 27
      },
      {
      "name": "Rithika",
      "id": 20
      }
      ];
  
      &lt;div ng-repeat="person in data | filter: {id:20}"&gt;
          {{parent_index}}
      &lt;/div&gt;
  </code></pre>
  
  <p>parent_index - Index of the filtered element in the actual array.</p>
  
  <p>In this example, parent_index should return 2. how to find it?</p>