title: Calculate average from list of values in JSON
body: <p>I have a simple ng-repeat that displays a list of values (financial income). How can i calculate the average from this list?</p>
  
  <pre><code>&lt;div ng-repeat="data in MyData"&gt;
      {{ data.income }}
  &lt;/div&gt;
  &lt;div&gt;
      Average:
  &lt;/div&gt;
  </code></pre>
  
  <p>Which displays:</p>
  
  <pre><code>11
  14
  8
  9
  21
  10
  2
  1
  5
  13
  </code></pre>
  
  <p>Thanks</p>