Operator which completes the Observable when the calling context (component, directive, service, etc) is destroyed.
API
function takeUntilDestroyed<T>( destroyRef?: DestroyRef): MonoTypeOperatorFunction<T>;
Jump to details
Operator which completes the Observable when the calling context (component, directive, service, etc) is destroyed.
function takeUntilDestroyed<T>( destroyRef?: DestroyRef): MonoTypeOperatorFunction<T>;