Questions tagged [currency-pipe]
21 questions
28
votes
8 answers
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…

David Casanellas
- 815
- 2
- 11
- 18
13
votes
4 answers
How to hide currency symbol in angular currency pipe
I'm trying to use Angular currency pipe and I wanted to remove the currency symbol all together from the formatted number, but it seems there is no option to do that. So is there any easy way to achieve this without writing a custom pipe for it?

Sinandro
- 2,426
- 3
- 21
- 36
8
votes
2 answers
Currency pipe with a dynamic currency variable in angular2
I am using CurrencyPipe with my application,
The following works,
{{123 | currConvert | currency:'USD':true:'3.2-2'}}
Now i have to pass the currency from the model variable, this is what i am doing,
ngOnInit() {
…
Sajeetharan
- 216,225
- 63
- 350
- 396
5
votes
4 answers
How to get the amount converted to currency pipe value after getting error message in angular8
i am using currency pipe in blur event. But it works fine for the first time, when i get an error message of validation, if i delete few numbers and come out, it wont be formatted to the currency format remains in the format what user have deleted.…

Bhrungarajni
- 2,415
- 11
- 44
- 88
4
votes
1 answer
How to use currency format with diffrent number format in angular js
I want to convert currency as per the regions like US , UK ,India ,Indonesia etc. and also want to convert in the number format as per region.
Example like in US $ 102,021.21 is written like this but in Indonesian format it will written something…

Aarsh
- 2,555
- 1
- 14
- 32
4
votes
1 answer
Angular 4 Internalization
I'm using Angular 2 localization support for dates and currencies.
The localization setting is done in the main application module level.
Within my app module settings if I configure the LOCALE_ID provider magically I have the localization…

ankakusu
- 1,738
- 8
- 26
- 37
3
votes
3 answers
Setting LOCALE_ID from Observable Service
I have a service that provides the global app language as follows:
export class LanguageService {
private currentLanguage$ = new ReplaySubject < string > ();
getCurrentLanguage(): Observable < string > {
return…

Sammy
- 3,395
- 7
- 49
- 95
2
votes
1 answer
Transform an input of reactive Form with CurrencyPipe
I have an input where I need to type a monetary value. This means I need to input a comma "," (EUR).
I following Code works fine, but the comma is being ignored, I tried out different expressions but no one is working fine.
How can I also allow…

Michael Mitch
- 403
- 2
- 7
- 17
2
votes
1 answer
Angular currency code not working on older Angular version
I am using Angular 7.3.x and updating is not an option and I'm wondering if that has something to do with this.
Basically:
{{ value | currency:'USD' }} gives me $
{{ value | currency:'EUR' }} gives me euro sign
also tried some others like Korea,…

R. Jutras
- 331
- 1
- 4
- 14
1
vote
0 answers
How to mask input box with real-time currency as per user locale in angular
I need a locale dynamic input currency mask as user types it formats itself adding symbol and commas example($1,111) as per user locale navigator.language() or currencypipe, I got this how can I modify this first input box code to get that.
can you…

Vikrant Raikwar
- 11
- 1
1
vote
2 answers
Angular Default Currency Pipe not working along with amount
I have a problem with the already built in CurrencyPipe from Angular.
I have tried with following
1
vote
2 answers
How to use currency pipe with ngx-translate?
I am using ngx-translate for the internalization of my angular application. I have added a dropdown that has 3 languages(fr, de and en). On language switching, I want to change the currency symbol. I have added a custom pipe also but, it's not…

mansi shrivastava
- 91
- 8
1
vote
2 answers
Angular2 currency filter formats negative numbers with parenthesis
In AngularJs currency filter formats negative numbers with parenthesis. Here I am using Angular 2 currency pipe, it doesn't format the negative number into parenthesis.
It just shows plain -$18.00 but I want to show like this ($18.00). How can I…

Sadid Khan
- 1,836
- 20
- 35
0
votes
1 answer
How to use Angular pipe for CZK currency?
I want an angular currency pipe to transcribe a number into czk currency in this way:
1000 => 1 000 Kč
3141592653589 => 3 141 592 653 589 Kč
4 => 4 Kč
The pipe should also ensure, that the spaces between digits will never cause a line break…

panSteven4
- 21
- 3
0
votes
1 answer
Reverse the currency value to floating number
I'm working on a german local based currency input using ionic(Angular). I want to show something like this
But back end API accepts the value as a floating number.
Ex:- 56.00
what I have currently done is

Kelum Bandara
- 443
- 4
- 9