File

projects/apttus/ecommerce/src/lib/modules/pricing/pipes/price.pipe.ts

Description

Provides pricing for a given order line item record NOTE: It is recommend you use the PriceComponent component when rendering price as it has been optimized for change detection.

Example:

 <!-- The NetPrice attribute on the returned price instance will be the number value of the price (i.e. 9.99) -->
 <span>{{(lineItem | OrderLineItemPricePipe | async)?.NetPrice}}<span>

 <!-- To get the formatted NetPrice (i.e. $9.99), use netPrice$ instead of netPrice property and pass it through the async pipe again -->
 <span>{{(lineItem | OrderLineItemPricePipe | async)?.netPrice$ | async}}<span>

Metadata

Name OrderLineItemPricePipe

Methods

transform
transform(value: OrderLineItem)
Parameters :
Name Type Optional
value OrderLineItem No
Returns : Observable<Price>

result-matching ""

    No results matching ""