File

feature-libs/checkout/components/components/checkout-order-summary/checkout-order-summary.component.ts

Metadata

changeDetection ChangeDetectionStrategy.OnPush
selector cx-checkout-order-summary
templateUrl ./checkout-order-summary.component.html

Index

Properties

Constructor

constructor(activeCartService: ActiveCartService)
Parameters :
Name Type Optional
activeCartService ActiveCartService No

Properties

cart$
Type : Observable<Cart>
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { ActiveCartService, Cart } from '@spartacus/core';
import { Observable } from 'rxjs';
@Component({
  selector: 'cx-checkout-order-summary',
  templateUrl: './checkout-order-summary.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class CheckoutOrderSummaryComponent {
  cart$: Observable<Cart>;

  constructor(protected activeCartService: ActiveCartService) {
    this.cart$ = this.activeCartService.getActive();
  }
}
<cx-order-summary [cart]="cart$ | async"></cx-order-summary>
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""