@tarktech/ngx-context
Version:
Angular Context: Easy property binding for router outlet and nested component trees.
26 lines (25 loc) • 1.17 kB
TypeScript
import { ChangeDetectorRef, OnChanges, OnInit } from '@angular/core';
import { ReplaySubject, Subject } from 'rxjs';
import { ContextMap } from './symbols';
import * as i0 from "@angular/core";
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;
static ɵfac: i0.ɵɵFactoryDeclaration<ContextProviderComponent<any>, [{ optional: true; skipSelf: true; }]>;
static ɵcmp: i0.ɵɵComponentDeclaration<ContextProviderComponent<any>, "context-provider", never, { "contextMap": { "alias": "contextMap"; "required": false; }; "provide": { "alias": "provide"; "required": false; }; }, {}, never, ["*"], false, never>;
}