title: Angularjs ng-repeat index not working
body: <p>I want to use ng-repeat more or less as follows:</p>
  
  <pre><code>&lt;div ng-repeat="One_Entry in Entries_List track by One_Entry.Entry_ID"
       onClick="DoSomething(One_Entry.Entry_ID)"&gt;
  
        &lt;!--- 
        present various fields within "One_Entry"
        --&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p><code>Entries_List</code> is a JSON array of objects, being <code>Entry_ID</code> one of the elements within the object.</p>
  
  <p><code>DoSomething</code> is a function within the related controller that is supposed to perform a specific activity on the structure whose ID is the passed Entry_ID.</p>
  
  <p>I tried using <code>$index</code> as well as <code>$parent.$index</code> but I'm getting an error stating that these variable do not exist.</p>
  
  <p>Could anyone tell me how I can achieve the above functionality?</p>
  
  <p>Thanks.</p>