A

Admin • 825.56K Points
Coach

Q. What does the `fixture.detectChanges()` method do in Angular testing?

  • (A) Triggers Angular change detection to update the component view
  • (B) Initializes the component
  • (C) Creates a mock service
  • (D) Destroys the component
  • Correct Answer - Option(A)
  • Views: 10
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
It runs change detection so that the template reflects component state.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.