UNPKG

ngx-rx-if

Version:

An implementation of conditional reactive directive based on @ngrx/store (Redux)

19 lines (18 loc) 776 B
import { ComponentFactoryResolver, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core'; import { Store } from '@ngrx/store'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/distinctUntilChanged'; import { RxIfConfig } from './rx-if.interface'; export declare class RxIfDirective implements OnDestroy { private _viewContainer; private templateRef; private store; private componentFactoryResolver; private subscription; private config; rxIf: RxIfConfig; constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, store: Store<any>, componentFactoryResolver: ComponentFactoryResolver); ngOnDestroy(): void; private updateView(result); private extractBindingFromState(state); }