{
"specific":
{
"first":{
"title":"222",
"items":[
{
"z": "1",
"s":"2",
"p":"3",
},
{
"z": "12",
"s":"12",
"p":"12"
}
],
"results":{
"z": "13",
"s":"14",
"p":"15"
}
}
}
}
<div class="row" ng-repeat="(item, q) in first.items">
<input ng-model="q.z">
<input ng-model="q.s">
<input ng-model="q.p">
Results should calculate the values for repeated elements in items (for example, item1.z + item2.z = results.z).
How can I calculate the values for each repeated element for item in items with angularJS?