A

Admin • 802.91K Points
Coach

Q. Which Angular feature helps avoid memory leaks with Observable subscriptions?

  • (A) Unsubscribe in ngOnDestroy
  • (B) Use @Input decorator
  • (C) Use ngIf directive
  • (D) Use ngFor directive
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Unsubscribing in ngOnDestroy prevents memory leaks from Observables.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.