Skip to content

injection selector

Nathanaël Cherrier (CI) edited this page Aug 26, 2019 · 1 revision

InjectionSelector (interface)

interface InjectionType<T> {
  identity: InjectionSelector<T>
  useValue?: any
  useClass?: InjectionClass<any>
}

Description

Represents data passed to the injector.

Properties

  • identity: (required) A reference key (a class, a language symbol, or an InjectionToken).
  • useClass: The class which will be instenciated by the injector.
  • useValue: A data which will be provided without instenciation.
Clone this wiki locally