Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Inject"

Index

Functions

DiContext

  • DiContext(context: function): any
  • Decorator ,that associates context with a class.

    Parameters

    • context: function

      Function, that returns [DIContainer]{@link DIContainer}.

    Returns any

inject

  • inject(target: Object, propKey: string): any
  • Decorator, that inject service from [DIContainer]{@link DIContainer} to the class property using property type as a key.

    Parameters

    • target: Object
    • propKey: string

    Returns any

injectThe

  • injectThe<KeyT>(key?: KeyT): (Anonymous function)
  • Decorator, that inject value from [DIContainer]{@link DIContainer} to the class property.

    Type parameters

    • KeyT

    Parameters

    • Optional key: KeyT

      Unique idenitifier of the value. When injecting services type of the property will be used as a key.

    Returns (Anonymous function)

Generated using TypeDoc