title: AngularJS sum of rows ng-repeat
body: <p>I add dynamically rows in my table with ng-repeat, coming from an array. </p>
  
  <p>Now I want to get the sum of all sums per row (group.sum * group.perc / 100.0). I need it in a variable because I need this value for further calculations. Thank you</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;tr ng-repeat="group in groupsArr"&gt;                                         
    &lt;td class="total-rows" ng-model="taxes"&gt;{{group.sum * group.perc / 100.0 | currency :""}}&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p><strong>SCRIPT</strong></p>
  
  <pre><code>var taxTotals = 0;
  var taxTotals = 
    for (i=0; i&lt;group.length; i++) {
      taxTotal = taxTotal + group[i].taxes;    
  };
  console.log(taxTotals);
  };  
  </code></pre>