New: Headless Commerce with Remix! read more

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

Members

constructor

method
type:
(dataService?: DataService, changeDetectorRef?: ChangeDetectorRef) => LocaleCurrencyPipe

transform

method
type:
(value: unknown, args: unknown[]) => string | unknown