AngularTS
    Preparing search index...

    Class InjectorService

    Injector for factories and services

    Hierarchy

    • AbstractInjector
      • InjectorService
    Index

    Constructors

    Properties

    _cache: Record<string, any>
    _modules: Record<string, NgModule>
    _path: string[]
    _providerInjector: ProviderInjector
    loadNewModules: (
        mods: (string | Function | AnnotatedFactory<(...args: any[]) => any>)[],
    ) => void = ...
    strictDi: boolean

    Methods

    • Get the injection arguments for a function.

      Parameters

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

      Returns any[]

    • Parameters

      • serviceName: string

      Returns any

    • Get a service by name.

      Parameters

      • serviceName: string

      Returns any

    • Parameters

      • name: string

      Returns boolean

    • 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