UNPKG

@spartacus/storefront

Version:

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

29 lines (28 loc) 929 B
import { InjectionToken, StaticProvider, Type } from '@angular/core'; import { OutletPosition } from './outlet.model'; /** * @private We plan to drive the outlets by standard configuration */ export declare const PROVIDE_OUTLET_OPTIONS: InjectionToken<ProvideOutletOptions>; export interface ProvideOutletOptions { /** * Unique id of the outlet */ id: string; /** * Component to be registered for the outlet */ component: Type<any>; /** * Component's position in the outlet */ position?: OutletPosition; } /** * Helper function to register a component for an outlet. * * @param options.id unique id of the outlet * @param options.component Component to be registered for the outlet * @param options.position Component's position in the outlet (default: `OutletPosition.AFTER`) */ export declare function provideOutlet(options: ProvideOutletOptions): StaticProvider;