UNPKG

@spartacus/storefront

Version:

Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.

30 lines (29 loc) 1.85 kB
import { Injector, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core'; import { CmsComponent, DynamicAttributeService } from '@spartacus/core'; import { Subscription } from 'rxjs'; import { CmsComponentData } from '../model/cms-component-data'; import { CmsComponentsService } from '../../services/cms-components.service'; import { ComponentHandlerService } from './services/component-handler.service'; import { CmsInjectorService } from './services/cms-injector.service'; import * as i0 from "@angular/core"; export declare class InnerComponentsHostDirective implements OnInit, OnDestroy { protected data: CmsComponentData<CmsComponent>; protected vcr: ViewContainerRef; protected cmsComponentsService: CmsComponentsService; protected injector: Injector; protected dynamicAttributeService: DynamicAttributeService; protected renderer: Renderer2; protected componentHandler: ComponentHandlerService; protected cmsInjector: CmsInjectorService; protected innerComponents$: import("rxjs").Observable<string[]>; protected componentWrappers: any[]; protected subscription?: Subscription; constructor(data: CmsComponentData<CmsComponent>, vcr: ViewContainerRef, cmsComponentsService: CmsComponentsService, injector: Injector, dynamicAttributeService: DynamicAttributeService, renderer: Renderer2, componentHandler: ComponentHandlerService, cmsInjector: CmsInjectorService); ngOnInit(): void; protected renderComponents(components: string[]): void; protected renderComponent(component: string): void; protected clearComponents(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<InnerComponentsHostDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<InnerComponentsHostDirective, "[cxInnerComponentsHost]", never, {}, {}, never>; }