title: How to count map size in AngularJS
body: <p>I have a map with key values as follows</p>
  
  <pre><code>$scope.items = {
    {
      0={"name": "Jim", "age" : 25}
    },
    {
      1={"name": "Eric", "age" : 25}
    }
  };
  </code></pre>
  
  <p>if it was an array to count the size I with do: </p>
  
  <pre><code>&lt;div ng-repeat="item in items&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and have the size <code>{{items.length}}</code></p>
  
  <p>In case of a map I with iterate items as follows:</p>
  
  <pre><code>&lt;div ng-repeat="(id, item) in items"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>but how to establish the size?</p>
  
  <p>Any help is appreciated.</p>