UNPKG

mobx-angular

Version:

Angular connector to MobX (2 and above)

21 lines (20 loc) 990 B
import { ViewContainerRef, TemplateRef, OnInit, OnDestroy, EmbeddedViewRef } from '@angular/core'; import { IAutorunOptions } from 'mobx'; import * as i0 from "@angular/core"; export declare class MobxAutorunDirective implements OnInit, OnDestroy { protected templateRef: TemplateRef<any>; protected viewContainer: ViewContainerRef; protected templateBindings: {}; protected dispose: any; protected view: EmbeddedViewRef<any>; private readonly allAutorunOptions; mobxAutorun: any; constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef); ngOnInit(): void; shouldDetach(): any; autoDetect(view: EmbeddedViewRef<any>): void; getAutorunOptions(): IAutorunOptions; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MobxAutorunDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MobxAutorunDirective, "[mobxAutorun]", never, { "mobxAutorun": "mobxAutorun"; }, {}, never, never, false, never>; }