A

Admin • 825.56K Points
Coach

Q. What does Angular's ChangeDetectionStrategy.OnPush do?

  • (A) Runs change detection for every event
  • (B) Runs change detection only when input properties change
  • (C) Disables change detection
  • (D) Runs change detection on every mouse move
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
OnPush optimizes performance by checking for changes only when inputs change.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.