Which operator is the modern recommended way to unsubscribe automatically in a component?
- A takeUntilDestroyed()
- B first()
- C take(1)
- D finalize()
Answer
takeUntilDestroyed()
Introduced in Angular 16, takeUntilDestroyed ties the subscription to the component's DestroyRef, removing the boilerplate destroy subject pattern.





