BackgroundModule mahalo/app/injector

This module is responsible for Mahalo's dependency injection.

Index

Functions

getDependency

  • getDependency(Constructor: Function): any
  • Returns the dependency for a given class.

    Parameters
    • Constructor: Function
    Returns any

injectDependencies

  • Injects dependencies into a component or behavior.

    Parameters
    Returns void

setDependency

  • setDependency(Constructor: Function, dependency: Object): void
  • Sets the dependency for given class.

    Parameters
    • Constructor: Function
    • dependency: Object
    Returns void