Posts by Matheus Barni • 16 points
1 post
-
0
votes1
answer90
viewsA: sum the total in an ng-repeat
You’ll need to do a breakdown to calculate everything. $scope.somarValores = function(){ $scope.total = 0; for(var i = 0; i < $scope.pedidos.length; i++) { $scope.total +=…