1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. All Rights Reserved.
|
4
|
*
|
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
* found in the LICENSE file at https://angular.io/license
|
7
|
*/
|
8
|
/**
|
9
|
* Describes within the change detector which strategy will be used the next time change
|
10
|
* detection is triggered.
|
11
|
* @stable
|
12
|
*/
|
13
|
export declare enum ChangeDetectionStrategy {
|
14
|
/**
|
15
|
* `OnPush` means that the change detector's mode will be initially set to `CheckOnce`.
|
16
|
*/
|
17
|
OnPush = 0,
|
18
|
/**
|
19
|
* `Default` means that the change detector's mode will be initially set to `CheckAlways`.
|
20
|
*/
|
21
|
Default = 1,
|
22
|
}
|
23
|
/**
|
24
|
* Describes the status of the detector.
|
25
|
*/
|
26
|
export declare enum ChangeDetectorStatus {
|
27
|
/**
|
28
|
* `CheckOnce` means that after calling detectChanges the mode of the change detector
|
29
|
* will become `Checked`.
|
30
|
*/
|
31
|
CheckOnce = 0,
|
32
|
/**
|
33
|
* `Checked` means that the change detector should be skipped until its mode changes to
|
34
|
* `CheckOnce`.
|
35
|
*/
|
36
|
Checked = 1,
|
37
|
/**
|
38
|
* `CheckAlways` means that after calling detectChanges the mode of the change detector
|
39
|
* will remain `CheckAlways`.
|
40
|
*/
|
41
|
CheckAlways = 2,
|
42
|
/**
|
43
|
* `Detached` means that the change detector sub tree is not a part of the main tree and
|
44
|
* should be skipped.
|
45
|
*/
|
46
|
Detached = 3,
|
47
|
/**
|
48
|
* `Errored` means that the change detector encountered an error checking a binding
|
49
|
* or calling a directive lifecycle method and is now in an inconsistent state. Change
|
50
|
* detectors in this state will no longer detect changes.
|
51
|
*/
|
52
|
Errored = 4,
|
53
|
/**
|
54
|
* `Destroyed` means that the change detector is destroyed.
|
55
|
*/
|
56
|
Destroyed = 5,
|
57
|
}
|
58
|
export declare function isDefaultChangeDetectionStrategy(changeDetectionStrategy: ChangeDetectionStrategy): boolean;
|