A

Admin • 825.56K Points
Coach

Q. How can you optimize Angular app performance by avoiding unnecessary change detection?

  • (A) Use ChangeDetectionStrategy.OnPush
  • (B) Use ngIf directive
  • (C) Use event binding only
  • (D) Use services instead of components
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
OnPush strategy checks for changes only when input properties change.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.