-
-
Notifications
You must be signed in to change notification settings - Fork 0
injection selector
Nathanaël Cherrier (CI) edited this page Aug 26, 2019
·
1 revision
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.