UNPKG

ngx-context

Version:

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

23 lines (22 loc) 733 B
import { ChangeDetectorRef, OnChanges, OnInit } from '@angular/core'; import { ReplaySubject, Subject } from 'rxjs'; import { ContextMap } from './symbols'; export declare class ContextProviderComponent<T = any> implements OnChanges, OnInit { private source; private initialized; private _contextMap; private _provide; provided: Map<any, any>; set contextMap(map: ContextMap); get contextMap(): ContextMap; set provide(value: string | string[]); get provide(): string | string[]; get component(): T; change$: ReplaySubject<string>; reset$: Subject<void>; constructor(source: ChangeDetectorRef); private init; private reset; ngOnChanges(): void; ngOnInit(): void; }