<table>
<tr *ngFor="let item of items">
<td>{{item.quantity}} </td>
<td>{{item.product_price | currency:'USD':true }} </td>
</tr>
<tr><td></td><td></td><td></td><td></td><td>Grand Total </td><td>{{
grandTotal | currency:'USD':true }}</td>
</table>
What I failed to show was that the grandTotal is part of a for loop. That's
why the grandTotal shows a wild sum. It's constantly being iterated over.
How do I get the quantity and product_price outside of a for loop?
--
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/31eab742-6cf3-4586-b273-542bc15659bbo%40googlegroups.com.