UNPKG

@skyux/core

Version:

This library was generated with [Nx](https://nx.dev).

32 lines (31 loc) 1.03 kB
import { EnvironmentInjector, StaticProvider, ViewContainerRef } from '@angular/core'; import { SkyDynamicComponentLocation } from './dynamic-component-location'; /** * Options for adding a dynamic component to the page. */ export interface SkyDynamicComponentOptions { /** * The location on the page where the dynamic component should be rendered. */ location?: SkyDynamicComponentLocation; /** * Providers to inject into the new component. */ providers?: StaticProvider[]; /** * The reference element used when using the `ElementTop` or `ElementBottom` locations. */ referenceEl?: HTMLElement; /** * The view container reference where the new component should be appended. */ viewContainerRef?: ViewContainerRef; /** * The environment injector to use instead of the dynamic component service's injector. */ environmentInjector?: EnvironmentInjector; /** * A class to add to the created component */ className?: string; }