mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: update change detection strategy references
This commit is contained in:
committed by
Pawel Kozlowski
parent
c1261b02db
commit
43ef7171b3
@@ -21,6 +21,8 @@ export enum ChangeDetectionStrategy {
|
||||
* until reactivated by setting the strategy to `Default` (`CheckAlways`).
|
||||
* Change detection can still be explicitly invoked.
|
||||
* This strategy applies to all child directives and cannot be overridden.
|
||||
*
|
||||
* NOTE: OnPush is enabled by default.
|
||||
*/
|
||||
OnPush = 0,
|
||||
|
||||
|
||||
@@ -548,7 +548,9 @@ export interface Component extends Directive {
|
||||
* which is responsible for propagating the component's bindings.
|
||||
* The strategy is one of:
|
||||
* - `ChangeDetectionStrategy#OnPush` sets the strategy to `CheckOnce` (on demand).
|
||||
* - `ChangeDetectionStrategy#Default` sets the strategy to `CheckAlways`.
|
||||
* - `ChangeDetectionStrategy#Eager` sets the strategy to `CheckAlways`.
|
||||
*
|
||||
* NOTE: OnPush is enabled by default.
|
||||
*/
|
||||
changeDetection?: ChangeDetectionStrategy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user