import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Injector, Type } from '@angular/core'; /** * Injection service is a helper to append components * dynamically to a known location in the DOM, most * noteably for dialogs/tooltips appending to body. * * @export * @class InjectionService */ export declare class InjectionService { private applicationRef; private componentFactoryResolver; private injector; private _container; constructor(applicationRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector); /** * Gets the root view container to inject the component to. * * @returns {ComponentRef} * * @memberOf InjectionService */ getRootViewContainer(): ComponentRef; /** * Overrides the default root view container. This is useful for * things like ngUpgrade that doesn't have a ApplicationRef root. * * @param {any} container * * @memberOf InjectionService */ setRootViewContainer(container: any): void; /** * Gets the html element for a component ref. * * @param {ComponentRef} componentRef * @returns {HTMLElement} * * @memberOf InjectionService */ getComponentRootNode(componentRef: any): HTMLElement; /** * Gets the root component container html element. * * @returns {HTMLElement} * * @memberOf InjectionService */ getRootViewContainerNode(): HTMLElement; /** * Projects the bindings onto the component * * @param {ComponentRef} component * @param {*} options * @returns {ComponentRef} * * @memberOf InjectionService */ projectComponentBindings(component: ComponentRef, bindings: any): ComponentRef; /** * Appends a component to a adjacent location * * @template T * @param {Type} componentClass * @param {*} [options={}] * @param {Element} [location=this.getRootViewContainerNode()] * @returns {ComponentRef} * * @memberOf InjectionService */ appendComponent(componentClass: Type, bindings?: any, location?: Element): ComponentRef; }