takeUntilDestroyed
함수
안정화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>;@paramdestroyRef
DestroyRef | undefinedoptionally, the DestroyRef representing the current context. This can be
passed explicitly to use takeUntilDestroyed outside of an injection
context. Otherwise, the current DestroyRef is injected.
@returns
MonoTypeOperatorFunction<T>상세 내용으로 이동