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