takeUntilDestroyed
Operator which completes the Observable when the calling context (component, directive, service, etc) is destroyed.
takeUntilDestroyed<T>(destroyRef?: DestroyRef): MonoTypeOperatorFunction<T>
Parameters
destroyRef
|
DestroyRef |
optionally, the Optional. Default is |
Returns
MonoTypeOperatorFunction<T>