title: ng-repat not working in array
body: <p>I try to ng-repeat my data but it not working</p>
  
  <pre><code>&lt;div ng-if="isDocPresent(doc, $index)"&gt;
        &lt;div ng-repeat="x in arr[$index] track by $index"&gt;
          &lt;div class="title" ng-if="$last"&gt;{{x || 'N/A'}}&lt;/div&gt;
          {{x.title}} {{x.document_url}} {{document_url}}
          &lt;/div&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p><strong>controller</strong></p>
  
  <pre><code>$scope.isDocPresent = function(doc, index) {
        if ($scope.parentCtrl.docsList &amp;&amp; $scope.parentCtrl.docsList[appConstants.DOCUMENT_CATEGORY[doc]])
        {
          $scope.arr[index] = $scope.parentCtrl.docsList[appConstants.DOCUMENT_CATEGORY[doc]];
          return true;
        }
      };
  </code></pre>
  
  <p>it always print only this <strong><code>{{x || 'N/A'}}</code></strong></p>