@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.25 kB
TypeScript
import { ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
import { ActiveCartService, AuthService, Cart, RoutingService } from '@spartacus/core';
import { LaunchDialogService } from '@spartacus/storefront';
import { Observable, Subscription } from 'rxjs';
import * as i0 from "@angular/core";
export declare class AddToSavedCartComponent implements OnInit, OnDestroy {
protected activeCartService: ActiveCartService;
protected authService: AuthService;
protected routingService: RoutingService;
protected vcr: ViewContainerRef;
protected launchDialogService: LaunchDialogService;
protected subscription: Subscription;
protected loggedIn: boolean;
element: ElementRef;
cart$: Observable<Cart>;
constructor(activeCartService: ActiveCartService, authService: AuthService, routingService: RoutingService, vcr: ViewContainerRef, launchDialogService: LaunchDialogService);
ngOnInit(): void;
saveCart(cart: Cart): void;
openDialog(cart: Cart): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AddToSavedCartComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AddToSavedCartComponent, "cx-add-to-saved-cart", never, {}, {}, never, never>;
}