Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Config

A bind configuration for a given type in the IoC Container.

Hierarchy

  • Config

Implemented by

Index

Methods

provider

  • Inform a provider to be used to create instances when a dependency for the source type is requested.

    Parameters

    • provider: Provider

      The provider to create instances

    Returns Config

scope

  • Inform a scope to handle the instances for objects created by the Container for this binding.

    Parameters

    • scope: Scope

      Scope to handle instances

    Returns Config

to

  • Inform a given implementation type to be used when a dependency for the source type is requested.

    Parameters

    • target: Object

      The implementation type

    Returns Config

withParams

  • withParams(...paramTypes: Array<any>): Config
  • Inform the types to be retrieved from IoC Container and passed to the type constructor.

    Parameters

    • Rest ...paramTypes: Array<any>

      A list with parameter types.

    Returns Config

Generated using TypeDoc