If I initialize totals as an empty array like this var totals = []; inside 
of the function, it resets the totals to an empty array every time the 
function is called and the grand total is just the quantity times price 
subtotal every time the function is called.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/967ddeb7-124a-462c-b186-55fbd4f88274o%40googlegroups.com.

Reply via email to