ChangeDetectionStrategy

enum ChangeDetectionStrategy { OnPush: 0 Default: 1 }

成员列表

成员说明
OnPush

Use the CheckOnce strategy, meaning that automatic change detection is deactivated until reactivated by setting the strategy to Default (CheckAlways). Change detection can still be explictly invoked.

Default

Use the default CheckAlways strategy, in which change detection is automatic until explicitly deactivated.