mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Default currency code in CurrencyPipe is currently hardcoded to USD
and is not configurable. This commit allows the default currency code
to be configurable by adding a DEFAULT_CURRENCY_CODE injection token.
Example:
```
providers: [{ provide: DEFAULT_CURRENCY_CODE, useValue: "GBP" }]
...
{{ 123.45 | currency }} // outputs £123.45 as opposed to always $123.45 before
```
Closes: #25461
PR Close #34771
|
||
|---|---|---|
| .. | ||
| async_pipe_spec.ts | ||
| case_conversion_pipes_spec.ts | ||
| date_pipe_spec.ts | ||
| i18n_plural_pipe_spec.ts | ||
| i18n_select_pipe_spec.ts | ||
| json_pipe_spec.ts | ||
| keyvalue_pipe_spec.ts | ||
| number_pipe_spec.ts | ||
| slice_pipe_spec.ts | ||