Question · Angular course · Module 7: RxJS
takeUntilDestroyed
What is the recommended way to manage subscriptions in Angular 16+?
Answer options
- Manual unsubscribe() in ngOnDestroy
- takeUntilDestroyed() from @angular/core/rxjs-interop
- The first() operator
- No management needed - Angular does it automatically
You can check the correct answer by solving this task in the CodeWorlds game.