1 | import { Injector } from '@angular/core';
|
2 | import { Observable } from 'rxjs/Observable';
|
3 | import { Frame } from './frame';
|
4 | export declare abstract class Controller<M, V> {
|
5 | private _modelSubject;
|
6 | private _model$;
|
7 | private _model;
|
8 | private _viewSubject;
|
9 | private _view$;
|
10 | private _view;
|
11 | private _markForCheckSubject;
|
12 | private _markForCheck$;
|
13 | private _frame;
|
14 | private _framerName;
|
15 | private _injector;
|
16 | private _refCount;
|
17 | |
18 |
|
19 |
|
20 | readonly model$: Observable<M>;
|
21 | |
22 |
|
23 |
|
24 | readonly model: M;
|
25 | |
26 |
|
27 |
|
28 | readonly view$: Observable<V>;
|
29 | |
30 |
|
31 |
|
32 | readonly view: V;
|
33 | |
34 |
|
35 |
|
36 | readonly markForCheck$: Observable<boolean>;
|
37 | |
38 |
|
39 |
|
40 | readonly frame: Frame;
|
41 | |
42 |
|
43 |
|
44 | readonly injector: Injector;
|
45 | |
46 |
|
47 |
|
48 | onControllerInit(): void;
|
49 | |
50 |
|
51 |
|
52 | onResolveStart(): void;
|
53 | |
54 |
|
55 |
|
56 | onResolveEnd(): void;
|
57 | |
58 |
|
59 |
|
60 | onResolveCancel(): void;
|
61 | |
62 |
|
63 |
|
64 | initController(model: M, view: V, frame: Frame, framerName: string, injector: Injector): void;
|
65 | updateModel(model: M, replace?: boolean): void;
|
66 | updateView(view: V, replace?: boolean): void;
|
67 | markForCheck(): void;
|
68 | attach(): void;
|
69 | detach(): void;
|
70 | onAttached(): void;
|
71 | onDetached(): void;
|
72 | }
|