Angular 5 - currencyPipe
问题 I have a problem with the already built in CurrencyPipe from Angular. I need to display a currency sign using the CurrencyPipe but I can't use it unless I provide an input number. Because the CurrencyPipe uses the current locale to get the currency sign, I was thinking that the input number could be optional. Current Behaviour: {{ 1 | currency:'USD' }} --> $1 Needed Behaviour: {{ null | currency:'USD' }} --> $ Does any of you know if this is possible with the default Pipe? Thanks!! 回答1: