UNPKG

@memberjunction/ng-container-directives

Version:

DEPRECATED: Angular Container Directives - Fill Container for Auto-Resizing, and plain container for element identification/binding. Will be removed in a future release.

26 lines 1.11 kB
import { ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; /** * Directive that exposes a ViewContainerRef for dynamic component loading. * This is used to create a reference point for dynamically loading components * into the DOM without manually handling ViewContainerRef injection. * * @example * <!-- In template --> * <div mjContainer></div> * * <!-- In component --> * @ViewChild(Container, { static: true }) container!: Container; * // Now you can use this.container.viewContainerRef for dynamic component creation */ export declare class Container { viewContainerRef: ViewContainerRef; /** * Constructor that exposes the ViewContainerRef for the element * @param viewContainerRef The ViewContainerRef for the element this directive is applied to */ constructor(viewContainerRef: ViewContainerRef); static ɵfac: i0.ɵɵFactoryDeclaration<Container, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<Container, "[mjContainer]", never, {}, {}, never, never, false, never>; } //# sourceMappingURL=ng-container-directive.d.ts.map