@spartacus/cart
Version:
`@spartacus/cart` is a package that you can include in your application, which allows you to use various cart features.
24 lines (23 loc) • 1.4 kB
TypeScript
import { OnDestroy, OnInit } from '@angular/core';
import { SavedCartFacade } from '@spartacus/cart/saved-cart/root';
import { Cart, EventService, GlobalMessageService, PromotionLocation, RoutingService } from '@spartacus/core';
import { Observable } from 'rxjs';
import { SavedCartDetailsService } from '../saved-cart-details.service';
import * as i0 from "@angular/core";
export declare class SavedCartDetailsItemsComponent implements OnInit, OnDestroy {
protected savedCartDetailsService: SavedCartDetailsService;
protected savedCartService: SavedCartFacade;
protected eventSercvice: EventService;
protected globalMessageService: GlobalMessageService;
protected routingService: RoutingService;
private subscription;
CartLocation: typeof PromotionLocation;
cartLoaded$: Observable<boolean>;
savedCart$: Observable<Cart | undefined>;
constructor(savedCartDetailsService: SavedCartDetailsService, savedCartService: SavedCartFacade, eventSercvice: EventService, globalMessageService: GlobalMessageService, routingService: RoutingService);
ngOnInit(): void;
onDeleteComplete(success: boolean): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SavedCartDetailsItemsComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SavedCartDetailsItemsComponent, "cx-saved-cart-details-items", never, {}, {}, never, never>;
}