UNPKG

@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.21 kB
import { ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; import { SavedCartFacade } from '@spartacus/cart/saved-cart/root'; import { Cart, RoutingService } from '@spartacus/core'; import { LaunchDialogService } from '@spartacus/storefront'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class SavedCartListComponent implements OnInit, OnDestroy { protected routing: RoutingService; protected savedCartService: SavedCartFacade; protected vcr: ViewContainerRef; protected launchDialogService: LaunchDialogService; private subscription; restoreButton: ElementRef; isLoading$: Observable<boolean>; savedCarts$: Observable<Cart[]>; constructor(routing: RoutingService, savedCartService: SavedCartFacade, vcr: ViewContainerRef, launchDialogService: LaunchDialogService); ngOnInit(): void; goToSavedCartDetails(cart: Cart): void; openDialog(event: Event, cart: Cart): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SavedCartListComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SavedCartListComponent, "cx-saved-cart-list", never, {}, {}, never, never>; }