UNPKG

@tarktech/ngx-context

Version:

Angular Context: Easy property binding for router outlet and nested component trees.

27 lines (26 loc) 1.16 kB
import { OnChanges, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core'; import { ContextProviderComponent } from './provider.component'; import * as i0 from "@angular/core"; export declare class Context { $implicit: { [key: string]: any; }; } export declare class ContextDisposerDirective implements OnChanges, OnDestroy { private tempRef; private vcRef; private provider; private destroy$; private _dispose; private view; set dispose(dispose: string | string[]); get dispose(): string | string[]; constructor(tempRef: TemplateRef<any>, vcRef: ViewContainerRef, provider: ContextProviderComponent); private init; private reset; private syncProperties; ngOnChanges(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ContextDisposerDirective, [{ optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<ContextDisposerDirective, "[contextDisposer]", never, { "dispose": { "alias": "contextDisposer"; "required": false; }; }, {}, never, never, false, never>; }