From 9ea0d64d8b5ab29426952c596d49f6e72df8dbdc Mon Sep 17 00:00:00 2001 From: Cameron Steffen Date: Wed, 23 Jan 2019 10:00:22 -0600 Subject: [PATCH] docs(core): indicate OnPush applies to children (#28320) Indicate the OnPush change detection strategy applies to all child directives. Resolves confusion from #12480. PR Close #28320 --- packages/core/src/change_detection/constants.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/change_detection/constants.ts b/packages/core/src/change_detection/constants.ts index 9d6eed4759..ed54b1933d 100644 --- a/packages/core/src/change_detection/constants.ts +++ b/packages/core/src/change_detection/constants.ts @@ -18,6 +18,7 @@ export enum ChangeDetectionStrategy { * 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 explicitly invoked. + * This strategy applies to all child directives and cannot be overridden. */ OnPush = 0,