A

Admin • 828.70K Points
Coach

Q. How can you unsubscribe from Observables in Angular to avoid memory leaks?

  • (A) Use the unsubscribe() method in ngOnDestroy
  • (B) Use async pipe
  • (C) Use takeUntil operator
  • (D) All of the above
  • Correct Answer - Option(D)
  • Views: 19
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
All methods help manage Observable subscriptions safely.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.