import { Type, ApplicationRef, ComponentFactoryResolver, ComponentRef, Injector, ViewContainerRef } from '@angular/core'; export declare class CreateDynamicComponentService { private componentFactoryResolver; private applicationRef; private injector; constructor(componentFactoryResolver: ComponentFactoryResolver, applicationRef: ApplicationRef, injector: Injector); /** * Gets the root view container to inject the component to. * * @returns {ComponentRef} * * @memberOf InjectionService */ private getRootViewContainer(); /** * Gets the html element for a component ref. * * @param {ComponentRef} componentRef * @returns {HTMLElement} * * @memberOf InjectionService */ private getComponentRootNode(componentRef); /** * Gets the root component container html element. * * @returns {HTMLElement} * * @memberOf InjectionService */ private getRootViewContainerNode(); /** * Projects the inputs onto the component * * @param {ComponentRef} component * @param {*} options * @returns {ComponentRef} * * @memberOf InjectionService */ private projectComponentInputs(component, options); createComponentDynamically(componentClass: Type, options?: any, location?: Element): ComponentRef; /** * Inserts a component into an existing viewContainer * @param componentType - type of component to create * @param options - Inputs to project on new component * @param vcRef - viewContainerRef in which to insert the newly created component */ insertComponentDynamically(componentType: Type, options: any, vcRef: ViewContainerRef): ComponentRef; }