A

Admin • 833K Points
Coach

Q. Which lifecycle hook is called just before Angular destroys a component?

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

Explanation by: Admin

ngOnDestroy is used for cleanup just before destruction.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.