I put the code at https://angular-ivy-at2fdp.stackblitz.io/ and it's 
working on stackblitz now but the grand total is null on init when I look 
at my own program.

On Tuesday, August 18, 2020 at 11:49:53 AM UTC-4 sc...@ser.vi wrote:

> Can you put your code in a StackBlitz where I can see it?
>
> On Tuesday, August 18, 2020 at 9:29:49 AM UTC-4 maka...@gmail.com wrote:
>
>> I am now replying directly to your question so you can hopefully get a 
>> notification in your email. Please see my updates. I need help with this.
>>
>>
>> On Saturday, July 25, 2020 at 1:13:10 PM UTC-4, Scott Logsdon wrote:
>>>
>>> ```
>>>   calcGrandTotal(totals: any) {
>>>     this.grandTotal = this.totals.reduce((acc, item: any)=> {
>>>       return acc + item.product_qty * item.product_total;
>>>     }, 0);
>>>   }
>>> ```
>>>
>>> Example Stackblitz:  https://stackblitz.com/edit/angular-ivy-zxvi5c
>>>
>>> On Saturday, July 25, 2020 at 11:55:00 AM UTC-4 maka...@gmail.com wrote:
>>>
>>>> I set issubmitted to true in my onSubmit function and executed if 
>>>> (this.isSubmited == true) in my getter but it didn't remedy the problem.
>>>>
>>>>
>>>>>

-- 
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 angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/0a8fa108-9ebb-4f63-a0eb-69dc210951e6n%40googlegroups.com.

Reply via email to