title: Looping through properties of object in an array in AngularJS
body: <p>I would like to loop and print the properties of the array of objects (only one time)</p>
  
  <p>Html</p>
  
  <pre><code>&lt;div ng-app ng-controller="MyCtrl"&gt;
      &lt;ul&gt;
          &lt;li ng-repeat="(key, value) in items"&gt;{{key}}&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Script</p>
  
  <pre><code>function MyCtrl($scope) {
      $scope.items = [{'name':10, 'phone':11},{'name':10, 'phone':11}];
  }
  </code></pre>
  
  <p>The desired effect would be:</p>
  
  <p>name</p>
  
  <p>phone</p>
  
  <p>It works only if I have one object and not an array of objects</p>
  
  <p>Here is a link to fiddle <a href="http://jsfiddle.net/3vzd732s/2/" rel="nofollow">http://jsfiddle.net/3vzd732s/2/</a></p>
  
  <p>Thanks in advance.</p>