{
"-Jc6dpVCNnCafhnkXAuu" : {
"amount" : 2,
"body" : "dsfsdvsd",
"from" : "angular"
},
"-Jc6fWfxkENC0amyZsS_" : {
"amount" : 2,
"body" : "massage",
"from" : "angular"
}
}
This is an example of the data that I'm trying to parse through
I am trying to grab all the items and add up the "amount" values. For example I want the total to be 4. I want to do this in AngularJS but I'm not sure how to reference the objects and add up the "amount" values.