A

Admin • 833.24K Points
Coach

Q. Which lifecycle hook is used to clean up subscriptions?

  • (A) ngOnInit
  • (B) ngAfterViewInit
  • (C) ngOnDestroy
  • (D) ngDoCheck

Explanation by: Admin

ngOnDestroy is used to clean up resources like subscriptions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.