How about, I have this array:
which corresponds to the total purchase according to the order, in this case by a for how can I get to that value:
for (var i = 0; i < total.length; i++) {
var totaldesayuno = total[i].totaldesayuno;
var totalcafe = total[i].totalcafe;
var totalsandwich = total[i].totalsandwich;
var totaldulce = total[i].totaldulce;
}
I need to ask which is the one that has the value to be able to show it in front with $scope