When using the OnPush strategy, a component will be checked if a new object reference is passed to one of its ________.

  • Inputs
  • Methods
  • Outputs
  • Variables
When using the OnPush change detection strategy in Angular, a component will be checked if a new object reference is passed to one of its inputs. This means that the component will only re-render if there's a change in the input values. The OnPush strategy is an optimization to reduce unnecessary checks and re-renders.
Add your answer
Loading...

Leave a comment

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