I have an array passed to a * ngFor, how do I sum the values of a property, vlr, for example.
order=[
{"qtd": Number(1),"vlr":Number(3.50)},
{"qtd": Number(6),"vlr":Number(4.00)},
{"qtd": Number(2),"vlr":Number(1.20)}
];
<div *ngFor="let e of order">
<div *ngIf="e.qtd != 0">
<ion-grid>
<ion-row>
<ion-col width-33 text-center>
<span>{{e.qtd}}</span>
</ion-col>
<ion-col width-33 text-center>
<span>{{e.vlr}}</span>
</ion-col>
</ion-row>
</ion-grid>
</div>
</div>