A

Admin • 825.56K Points
Coach

Q. Which Angular lifecycle hook is called when a component is destroyed?

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

Explanation by: Admin
ngOnDestroy is called just before Angular destroys the component.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.