I want to add dynamically values of element of JSON in AngularJS. Below is my HTML tag where I want to display it:
<tr>
<th class="right"> Ending Value<span class="subVal">:</span></th>
</tr>
<tr>
<td class="right">$21,50,868.06</td>
</tr>
Now for this ending value, I want that it should be the sum of retailAcctTotalBalance elements of below json :
"acconnts": [{
"userName": null,
"retailAcctNumber": "574436368",
"retailAcctTotalBalance": 0.0
}, {
"userName": null,
"retailAcctNumber": "101215858",
"retailAcctTotalBalance": 2118639.38
}, {
"userName": null,
"retailAcctNumber": "101900352",
"retailAcctTotalBalance": 32228.68
}, {
"userName": null,
"retailAcctNumber": "574435165",
"retailAcctTotalBalance": 0.0
}]