Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Injector Abstract

author

RanYunLong549510622@qq.com

Hierarchy

Index

Constructors

Properties

provide: Map<ProviderToken<any>, any> = ...
providers: StaticProvider[]

Methods

  • get<T>(token: ProviderToken<T>, notFoundValue?: T): undefined | T
  • Retrieves an instance from the injector based on the provided token.

    Type Parameters

    • T

    Parameters

    Returns undefined | T

  • construct<T>(target: Function, argumentsList: ArrayLike<any>): T
  • construct

    Type Parameters

    • T extends {}

    Parameters

    • target: Function
    • argumentsList: ArrayLike<any>

    Returns T