Which change detection strategy checks the component only when its input properties change?

  • ChangeWhenInputChanges
  • CheckOnce
  • Default
  • OnPush
The change detection strategy that checks the component only when its input properties change is "ChangeWhenInputChanges." This strategy is commonly referred to as "OnPush." When using this strategy, Angular will recheck a component only when its input properties change, improving performance by reducing unnecessary checks on components that haven't received new input data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *