Hi Scott, My getter isn't working so well after all because it doesn't update the products when a product is deleted. So I re-visited my old forum posts and I came across your solution. I don't have a clear totals array in the constructor, instead I get the items by using this.items = this.getStorageItems(); in my ngOnInit function. So I modified your code and used this.items instead of this.totals but I can't get it to work; grandTotal always returns null. I see that your code is working perfectly at Stackblitz so I'm sure I'm doing something wrong. Can you help me with this?
-- 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/1a3b4ae5-e4a5-49ba-8617-23c4f6dc2a68o%40googlegroups.com.
