Angular 2 CurrencyPipe space between currency and number?

后端 未结 10 1121
轻奢々
轻奢々 2021-02-18 21:08

I noticed that there is a pipe called CurrencyPipe in Angular 2, which will filter some decimals from a number. This also adds the ISO currency indicator, ie \'USD\' or any othe

10条回答
  •  粉色の甜心
    2021-02-18 21:55

    Adding a space in the symbol section will also work. See below.

    {{ amount | currency:"USD":"USD " }}
    

提交回复
热议问题