docs: update change detection strategy references

This commit is contained in:
SkyZeroZx
2026-03-26 10:49:51 -05:00
committed by Pawel Kozlowski
parent c1261b02db
commit 43ef7171b3
8 changed files with 10 additions and 28 deletions
@@ -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,
+3 -1
View File
@@ -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;