Is there anyway to count an item, then display it outside of the loop?
<tr ng-repeat="value in values">
<td>value.total</td>
</tr>
<tr>
<td>Total Of All Values: {{ total }}</td>
</tr>
I've tried using ng-init() to no success as I think it's over-riding each time.
<tr ng-repeat="value in values">
<td ng-init="total = total + value.total>value.total</td>
</tr>
<tr>
<td>Total Of All Values: {{ total }}</td>
</tr>
Is there anyway of doing it here, without making a function in my controller?