AngularTS
    Preparing search index...

    Class ProviderInjector

    Injector for providers

    Hierarchy

    • AbstractInjector
      • ProviderInjector
    Index

    Constructors

    • Parameters

      • cache: ProviderCache
      • strictDi: boolean

        Indicates if strict dependency injection is enforced.

      Returns ProviderInjector

    Properties

    _cache: Record<string, any>
    _modules: Record<string, NgModule>
    _path: string[]
    strictDi: boolean

    Methods

    • Get the injection arguments for a function.

      Parameters

      • fn: InjectableFn
      • Optionallocals: Record<string, any>
      • OptionalserviceName: string

      Returns any[]

    • Factory method for creating services.

      Parameters

      • caller: string

        The name of the caller requesting the service.

      Returns never

      If the provider is unknown.

    • Get a service by name.

      Parameters

      • serviceName: string

      Returns any

    • Instantiate a type constructor with optional locals.

      Parameters

      • type: InjectableFn
      • Optionallocals: Record<string, any>
      • OptionalserviceName: string

      Returns any

    • Invoke a function with optional context and locals.

      Parameters

      • fn: string | InjectableFn
      • Optionalself: any
      • Optionallocals: string | Record<string, any>
      • OptionalserviceName: string

      Returns any