A

Admin • 833.24K Points
Coach

Q. Which lifecycle hook is used to initiate animations in Angular?

  • (A) ngOnInit
  • (B) ngAfterViewInit
  • (C) ngDoCheck
  • (D) ngOnDestroy
  • Correct Answer - Option(B)
  • Views: 42
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

Animations depending on the DOM should be initiated in ngAfterViewInit.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.