Documentation
    Preparing search index...

    Function injectAbortScope

    • Inject a Scope that is bound to the current Angular injection context.

      Parameters

      • Optionalopts: { label?: string; parent?: Scope }

        Optional label and parent Scope.

      Returns Scope

      • The Scope disposes when the enclosing DestroyRef is destroyed.
      • Works in components, directives, services, pipes — anywhere a DestroyRef exists.
      • Pairs well with Angular's takeUntilDestroyed() for RxJS cleanup. See Angular API for details. https://angular.dev/api/core/rxjs-interop/takeUntilDestroyed