Angular 2 CurrencyPipe space between currency and number?

后端 未结 10 1117
轻奢々
轻奢々 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 22:06

    Just concatenate the space as shown in the code below. It works`s for me. I am using Angular 6 by the way.

    {{ product.price | currency:'USD' + ' ' }}
    

提交回复
热议问题