Angular 2 formatting currency BRL format

前端 未结 11 2469
梦毁少年i
梦毁少年i 2021-02-19 14:52

I\'m trying to use pipe to format the price of an item in PT-BR currency format.

Here what i\'m trying to do:

{{statement
11条回答
  •  长发绾君心
    2021-02-19 15:18

    Which browser are you using, as stated in the code:

    WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers. For other browsers please use an polyfill, for example: [https://github.com/andyearnshaw/Intl.js/].
    

    Probably you are best to use another library like the one they mentioned.

提交回复
热议问题