W3cubDocs

/Angular

takeUntilDestroyed

Operator which completes the Observable when the calling context (component, directive, service, etc) is destroyed.

API

function takeUntilDestroyed<T>(
  destroyRef?: DestroyRef | undefined,
): MonoTypeOperatorFunction<T>;

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/rxjs-interop/takeUntilDestroyed