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...
asked by
01.05.2017 / 23:16