Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IInjectorService

Hierarchy

  • IInjectorService

Index

Properties

modules

modules: {}

An object map of all the modules that have been loaded into the injector.

Type declaration

strictDi

strictDi: boolean

Methods

annotate

  • annotate(fn: Function, strictDi?: boolean): string[]
  • annotate(inlineAnnotatedFunction: any[]): string[]
  • Parameters

    • fn: Function
    • Optional strictDi: boolean

    Returns string[]

  • Parameters

    • inlineAnnotatedFunction: any[]

    Returns string[]

get

  • Type parameters

    • T

    Parameters

    • name: string
    • Optional caller: string

    Returns T

  • Parameters

    • name: "$anchorScroll"

    Returns IAnchorScrollService

  • Parameters

    • name: "$cacheFactory"

    Returns ICacheFactoryService

  • Parameters

    • name: "$compile"

    Returns ICompileService

  • Parameters

    • name: "$controller"

    Returns IControllerService

  • Parameters

    • name: "$document"

    Returns IDocumentService

  • Parameters

    • name: "$exceptionHandler"

    Returns IExceptionHandlerService

  • Parameters

    • name: "$filter"

    Returns IFilterService

  • Parameters

    • name: "$http"

    Returns IHttpService

  • Parameters

    • name: "$httpBackend"

    Returns IHttpBackendService

  • Parameters

    • name: "$httpParamSerializer"

    Returns IHttpParamSerializer

  • Parameters

    • name: "$httpParamSerializerJQLike"

    Returns IHttpParamSerializer

  • Parameters

    • name: "$interpolate"

    Returns IInterpolateService

  • Parameters

    • name: "$interval"

    Returns IIntervalService

  • Parameters

    • name: "$locale"

    Returns ILocaleService

  • Parameters

    • name: "$location"

    Returns ILocationService

  • Parameters

    • name: "$log"

    Returns ILogService

  • Parameters

    • name: "$parse"

    Returns IParseService

  • Parameters

    • name: "$q"

    Returns IQService

  • Parameters

    • name: "$rootElement"

    Returns IRootElementService

  • Parameters

    • name: "$rootScope"

    Returns IRootScopeService

  • Parameters

    • name: "$sce"

    Returns ISCEService

  • Parameters

    • name: "$sceDelegate"

    Returns ISCEDelegateService

  • Parameters

    • name: "$templateCache"

    Returns ITemplateCacheService

  • Parameters

    • name: "$templateRequest"

    Returns ITemplateRequestService

  • Parameters

    • name: "$timeout"

    Returns ITimeoutService

  • Parameters

    • name: "$window"

    Returns IWindowService

  • Type parameters

    • T

    Parameters

    • name: "$xhrFactory"

    Returns IXhrFactory<T>

has

  • has(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

instantiate

  • instantiate<T>(typeConstructor: new (...args: any[]) => T, locals?: any): T
  • Type parameters

    • T

    Parameters

    • typeConstructor: new (...args: any[]) => T
        • new (...args: any[]): T
        • Parameters

          • Rest ...args: any[]

          Returns T

    • Optional locals: any

    Returns T

invoke

  • invoke<T>(func: Injectable<Function | ((...args: any[]) => T)>, context?: any, locals?: any): T
  • Type parameters

    • T = any

    Parameters

    • func: Injectable<Function | ((...args: any[]) => T)>
    • Optional context: any
    • Optional locals: any

    Returns T

loadNewModules

  • loadNewModules(modules: (string | IModule | Injectable<(...args: any[]) => void>)[]): void
  • Add the specified modules to the current injector. This method will add each of the injectables to the injector and execute all of the config and run blocks for each module passed to the method.

    Parameters

    • modules: (string | IModule | Injectable<(...args: any[]) => void>)[]

      A module, module name or annotated injection function.

    Returns void

Generated using TypeDoc