Posts by Lucas Ricoy • 11 points
1 post
-
1
votes1
answer790
viewsA: How to add results from a list and display result in an Ionic popup?
whereas his $scope.itens is a vector, add this line to the method qntBtn, before creating the popup. $scope.data.quantidade = $scope.itens.reduce(function(total, item){ total += item.valor }, 0)…