Hierarchy

  • IInjector

Implemented by

Properties

Methods

Properties

which object owns this injector.

Maybe an object A has the injector refer to this, but A do not own it.

parent: IInjector

If you use $new method to create a object A which is provider, A

Methods

  • Based on this injector, create an object which may depend providers from this injector. If C is a provider, we create a sub injector, whose parent is the injector.

    Type Parameters

    Parameters

    • c: C
    • Rest ...args: ConstructorParameters<C>

    Returns InstanceType<C>

  • get a value from THIS injector in hierarchical.

    Type Parameters

    • T

    Parameters

    • token: symbol

    Returns T

  • write an readonly property

    Parameters

    • o: object
    • prop: string
    • value: any

    Returns void

Generated using TypeDoc