• Overview
@angular/core/rxjs-interop

takeUntilDestroyed

function
stablesince v19.0

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

API

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