LocaleCurrencyPipe
LocaleCurrencyPipe
Formats a Vendure monetary value (in cents) into the correct format for the configured currency and display locale.
Example
{{ variant.priceWithTax | localeCurrency }}
Signature
class LocaleCurrencyPipe extends LocaleBasePipe implements PipeTransform {
constructor(dataService?: DataService, changeDetectorRef?: ChangeDetectorRef)
transform(value: unknown, args: unknown[]) => string | unknown;
}
- Extends:
LocaleBasePipe
- Implements:
PipeTransform
constructor
method
(dataService?: DataService, changeDetectorRef?: ChangeDetectorRef) => LocaleCurrencyPipe
transform
method
(value: unknown, args: unknown[]) => string | unknown