A

Admin • 832.27K Points
Coach

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

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

Explanation by: Admin

ngOnDestroy is used for cleanup like unsubscribing.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.