mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: use better wording (#46314)
Co-authored-by: Andrew Kushnir <43554145+AndrewKushnir@users.noreply.github.com> PR Close #46314
This commit is contained in:
committed by
Jessica Janiuk
parent
78ae490e0a
commit
3b304219c4
@@ -9,7 +9,7 @@ If you are confident that a part of the application is not affected by a state c
|
||||
|
||||
## Using OnPush
|
||||
|
||||
OnPush change detection instructs Angular that to only run change detection automatically for a component subtree when:
|
||||
OnPush change detection instructs Angular to run change detection for a component subtree **only** when:
|
||||
* The root component of the subtree receives new inputs as the result of a template binding. Angular compares the current and past value of the input with `==`
|
||||
* Angular handles an event _(e.g. using event binding, output binding, or `@HostListener`)_ in the subtree's root component or any of its children wether they are using OnPush change detection or not.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user