title: ng-repeat for array of objects in json
body: <p>I had been trying to display objects fields like <code>name</code>, <code>address</code> in a table from a remote JSON file. I can't seem to figure out what I am doing wrong. <code>ng-repeat</code> only works when i index the iterator.</p>
  
  <pre><code>angular.module('mainApp', [])
  .controller('branchListCtrl', function($scope, $http) {
    $http.get('http://some.url.com')
    .then(function(response) {              
      $scope.artists = response.data;
      console.log($scope.artists);
    });
  });
  
  &lt;tr ng-repeat="x in artists"&gt; 
    &lt;td&gt;{{x.name}}&lt;/td&gt; &lt;!--this only gives empty rows equal to # of objectsin json--&gt;
    &lt;td&gt;{{x.address}}&lt;/td&gt;
  &lt;/tr&gt;    
  &lt;tr ng-repeat="x in artists"&gt;
    &lt;td&gt;{{x[1].name}}&lt;/td&gt;
    &lt;td&gt;{{x[1].address}}&lt;/td&gt;
  &lt;/tr&gt; 
  </code></pre>