ng-messages2
Version:
Angular version of ng-message
21 lines (20 loc) • 975 B
TypeScript
/// <reference types="es6-shim" />
import { ComponentFactoryResolver, ViewContainerRef, OnDestroy } from '@angular/core';
import { Portal, TemplatePortal, BasePortalHost } from './portal';
export declare class ClPortalHostDirective extends BasePortalHost implements OnDestroy {
private _componentFactoryResolver;
private _viewContainerRef;
/** The attached portal. */
private _portal;
constructor(_componentFactoryResolver: ComponentFactoryResolver, _viewContainerRef: ViewContainerRef);
/** Portal associated with the Portal host. */
portal: Portal<any>;
ngOnDestroy(): void;
/**
* Attach the given TemplatePortal to this PortlHost as an embedded View.
* @param portal Portal to be attached.
*/
attachTemplatePortal(portal: TemplatePortal): Map<string, any>;
/** Detaches the currently attached Portal (if there is one) and attaches the given Portal. */
private _replaceAttachedPortal(p);
}