| 123456789101112131415161718192021 |
- import { ApplicationRef, ComponentFactoryResolver, ComponentRef } from '@angular/core';
- import { BasePortalHost, ComponentPortal } from './portal';
- /**
- * A PortalHost for attaching portals to an arbitrary DOM element outside of the Angular
- * application context.
- *
- * This is the only part of the portal core that directly touches the DOM.
- */
- export declare class DomPortalHost extends BasePortalHost {
- private _hostDomElement;
- private _componentFactoryResolver;
- private _appRef;
- constructor(_hostDomElement: Element, _componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef);
- /**
- * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.
- * @param portal Portal to be attached
- */
- attachComponentPortal<T>(portal: ComponentPortal<T>, newestOnTop: boolean): ComponentRef<T>;
- /** Gets the root HTMLElement for an instantiated component. */
- private _getComponentRootNode;
- }
|