UNPKG

ngx-context-store

Version:

An alternative yet advanced mechanism for Angular components to share data.

18 lines (17 loc) 941 B
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core'; import { NgxContextStoreModel } from './ngx-context-store-model'; import { NgxContextStoreSetDirective } from './ngx-context-store-set.directive'; import * as i0 from "@angular/core"; export declare class NgxContextStoreGetDirective implements OnInit, OnDestroy { private templateRef; private viewContainer; private parentContextHolder; private _view; private _parentSubsciption; constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, parentContextHolder: NgxContextStoreSetDirective); ngOnInit(): void; ngOnDestroy(): void; updateContext(context: NgxContextStoreModel): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgxContextStoreGetDirective, [null, null, { optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgxContextStoreGetDirective, "[getContext]", never, {}, {}, never>; }