Interface IInjectorService

Index

Methods

Methods

public annotate(fn: Function): Array<string>

Parameters

  • fn: Function

Returns

Array<string>

public annotate(inlineAnnotatedFunction: Array<any>): Array<string>

Parameters

  • inlineAnnotatedFunction: Array<any>

Returns

Array<string>

public get(name: string): any

Parameters

  • name: string

Returns

any

public has(name: string): boolean

Parameters

  • name: string

Returns

boolean

public instantiate(typeConstructor: Function, locals?: any): any

Parameters

  • typeConstructor: Function
  • locals?: any optional

Returns

any

public invoke(inlineAnnotatedFunction: Array<any>): any

Parameters

  • inlineAnnotatedFunction: Array<any>

Returns

any

public invoke(func: Function, context?: any, locals?: any): any

Parameters

  • func: Function
  • context?: any optional
  • locals?: any optional

Returns

any