title: Getting $parent.$index inside a custom directive
body: <pre><code>&lt;li ng-repeat="value in array1 track by $index"&gt;
  &lt;div ng-repeat="j in array2"&gt;
          &lt;div example-directive &gt;
                  &lt;p&gt;     {{$index}} ,{{$parent.$index}}&lt;/p&gt;
          &lt;/div&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>In the above code I couldnt access parent ng-repeat index inside my custom directive.how can I get the index of parent ng-repeat</p>