To optimize performance, you can set the _____ property of a component to ChangeDetectionStrategy.OnPush to make Angular check the component only when its input properties change.

  • OnCheck
  • changeDetectionStrategy
  • detectionChangeStrategy
  • ngChangeDetection
To optimize performance in Angular, you can set the changeDetection property of a component to ChangeDetectionStrategy.OnPush. This setting makes Angular check the component only when its input properties change, reducing unnecessary checks and improving performance.
Add your answer
Loading...

Leave a comment

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