javascript - Formatting a number to have commas at every 1000 factor -
i need format number 1234567
1,234,567
don't know how this. tried using currency pipe of typescript gives usd or $ in front of number. want remove , format number in way 1,234,567
. how can this?
simply use number pipe instead.
to give example:
{{ '1234567' | number:'.2'}}
will produce output 1,234,567
Comments
Post a Comment