Spec-Zone.ru › Angular

takeUntilDestroyed

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

Unsubscribing with takeUntilDestroyed

API

function takeUntilDestroyed<T>(
  destroyRef?: DestroyRef | undefined,
): MonoTypeOperatorFunction<T>;
@paramdestroyRefDestroyRef | undefined

optionally, 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.

@returnsMonoTypeOperatorFunction<T>

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/rxjs-interop/takeUntilDestroyed

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API