From 7711064677dc514613a1935d239383eacc84c177 Mon Sep 17 00:00:00 2001 From: Arnel Umandap Jr Date: Fri, 12 May 2023 21:28:10 +0800 Subject: [PATCH] docs: add missing "when" --- aio/content/guide/change-detection-skipping-subtrees.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/change-detection-skipping-subtrees.md b/aio/content/guide/change-detection-skipping-subtrees.md index 0dde8c4e11ca..4e3c14876599 100644 --- a/aio/content/guide/change-detection-skipping-subtrees.md +++ b/aio/content/guide/change-detection-skipping-subtrees.md @@ -59,7 +59,7 @@ As an example, in the diagram below, Angular handles an event in `LoginComponent ## New inputs to component with OnPush -Angular will run change detection within a child component with `OnPush` setting an input property as result of a template binding. +Angular will run change detection within a child component with `OnPush` when setting an input property as result of a template binding. For example, in the diagram below, `AppComponent` passes a new input to `MainComponent`, which has `OnPush`. Angular will run change detection in `MainComponent` but will not run change detection in `LoginComponent`, which also has `OnPush`, unless it receives new inputs as well.