I have created a scope function like this.
$scope.getTotal = function(){
var total1 = 0;
var total2 = 0;
var total3 = 0;
for(var i = 0; i < $scope.today.length; i++){
var ordqt = $scope.today[i]["OrdQ"];
var ordvval = $scope.today[i]["OrdSV"];
var resqt = $scope.today[i]["RecQ"];
total1 = +total1 + +ordqt;
total2 = +total2 + +ordvval;
total3 = +total3 + +resqt;
}
total = total1+"@"+total2+"@"+total3;
return total;
}
How can I split the values from the getTotal function to display here?
<td>{{ getTotal() }}<td>
<td>{{ getTotal() }}<td>
<td>{{ getTotal() }}<td>