injection selector - mindsers/yabf GitHub Wiki
interface InjectionType<T> {
identity: InjectionSelector<T>
useValue?: any
useClass?: InjectionClass<any>
}Represents data passed to the injector.
-
identity: (required) A reference key (a class, a language symbol, or anInjectionToken). -
useClass: The class which will be instenciated by the injector. -
useValue: A data which will be provided without instenciation.