What I am essentially trying to achieve here is to have a remaining amount that decreases in amount as the user enters the amount in to a series of text fields.
These text fields are generated by an angular loop and its the remainingAmount var that I need to be updated, so if for example the fresh remaining amount if 40 then a user enters 10 into field 1 then the remaining amount becomes 30 all the way until 0.
<div class="row">
<div class="col text-center error">
<span ng-model="remainingAmount">{{ remainingAmount }}</span> left to distribute
</div>
</div>
</div>
<div class="list">
<div class="item item-button-right" ng-repeat="user in users">
{{ user.first_name }} {{ user.last_name }}
<span class="item-note">
<input type="text" />
</span>
</div>
</div>