Injector for providers

Hierarchy

  • AbstractInjector
    • ProviderInjector

Constructors

Properties

cache: any
modules: {}
path: any[]
strictDi: boolean

Methods

  • Factory method for creating services.

    Parameters

    • caller: string

      The name of the caller requesting the service.

    Returns void

    If the provider is unknown.

  • Get a service by name.

    Parameters

    • serviceName: string

    Returns any

  • Get the injection arguments for a function.

    Parameters

    • fn: Function | any[]
    • locals: any
    • serviceName: string

    Returns any[]

  • Instantiate a type constructor with optional locals.

    Parameters

    • type: Function | any[]
    • Optionallocals: any
    • OptionalserviceName: string

    Returns any

  • Invoke a function with optional context and locals.

    Parameters

    • fn: string | Function | any[]
    • Optionalself: any
    • Optionallocals: any
    • OptionalserviceName: string

    Returns any