title: get index of ng-repeat inside of ng-repeat
body: <p>I have a page where An array has an array inside it and is displyed using ng-repeat 2 times. </p>
  
  <pre><code>&lt;div ng-repeat="chapter in chapters"&gt;
          &lt;div ng-repeat="page in chapter.pages"&gt;
              &lt;p&gt;Title: {{page.title}}&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>the array is: </p>
  
  <pre><code>$scope.chapters= [
      {
          pages: [
              {title: 'Title3'},
              {title: 'Title4'},
              {title: 'Title5'}
          ]
      },
      {
          pages: [
              {title: 'Title1'},
              {title: 'Title2'}
          ]
      }
  
  ];
  </code></pre>
  
  <p>I need to access $index of chapter and pages inside 'p' element i.e. i want to access the chapter no and page no there. </p>
  
  <p>how can i achieve that?</p>