import { ViewContainerRef, ApplicationRef, Compiler, ComponentRef } from '@angular/core'; /** * @see https://github.com/valor-software/ng2-bootstrap/blob/development/components/utils/components-helper.service.ts * for more details */ export declare class ComponentsHelperService { private applicationRef; private compiler; root: ViewContainerRef; /** * In some cases, like using ngUpgrade, * you need to explicitly set view container ref * to made this method working you need to add: * ```typescript * @Component({ * selector: 'my-app', * ... * }) * export class MyApp { * constructor(componentsHelper:ComponentsHelper, viewContainerRef: ViewContainerRef) { * // A Default view container ref, usually the app root container ref. * // Has to be set manually until we can find a way to get it automatically. * componentsHelper.setRootViewContainerRef(viewContainerRef) * } * } * ``` */ setRootViewContainerRef(value: ViewContainerRef): void; /** * This is a name conventional class to get application root view component ref * return {ViewContainerRef} - application root view component ref */ getRootViewContainerRef(): ViewContainerRef; getComponentRef(module: any, component: any, inputs?: {}): ComponentRef; constructor(applicationRef: ApplicationRef, compiler: Compiler); }