UNPKG

ng-shopping-cart

Version:

An Angular component library to create shopping carts

37 lines (36 loc) 1.24 kB
import { Injector, NgModuleFactory, OnChanges, OnDestroy, SimpleChanges, Type, ViewContainerRef } from '@angular/core'; import { ShowcaseItem } from '../interfaces/showcase-item'; import { CartItem } from '../classes/cart-item'; /** * A directive to create dynamic item components for the showcase component * @ignore */ export declare class ShowcaseOutletDirective implements OnChanges, OnDestroy { viewContainerRef: ViewContainerRef; /** * The component to render */ cartShowcaseOutlet: Type<ShowcaseItem>; /** * The injector of the selected component */ cartShowcaseOutletInjector: Injector; /** * The module factory of the selected component */ cartShowcaseOutletNgModuleFactory: NgModuleFactory<any>; /** * The CartItem information to pass into the component */ cartShowcaseOutletItem: CartItem; /** * The locale format received from the parent component */ cartShowcaseOutletFormat: string; private _componentRef; private _moduleRef; constructor(viewContainerRef: ViewContainerRef); private cleanModule(); ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; }