In angular2, we can used pipes to format numbers. For example:
{{selectedTeam.teamSalary | currency: 'USD':true}}
This gives us something like $152,524,668.00
The Angular2 Pipes documentation doens't cover a whole lot of specifics so my question is, is there a way to (using angular2 pipes) to convert a number like $152,524,668.00 to $152.5m?
This question gives me code to do it, but looking for a more 'Anulgar2-specific' way to do it (if one exists).
Convert long number into abbreviated string in JavaScript, with a special shortness requirement