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 {
readonly precisionFactor: number;
constructor(currencyService: CurrencyService, dataService?: DataService, changeDetectorRef?: ChangeDetectorRef)
transform(value: unknown, args: unknown[]) => string | unknown;
}
-
Extends:
LocaleBasePipe
-
Implements:
PipeTransform
precisionFactor
property
number
constructor
method
(currencyService: CurrencyService, dataService?: DataService, changeDetectorRef?: ChangeDetectorRef) => LocaleCurrencyPipe
transform
method
(value: unknown, args: unknown[]) => string | unknown