- inject<T>(key): T | undefined
Returns T | undefined
- inject<T>(key, defaultValue, treatDefaultAsFactory?): T
Parameters
- key: string | InjectionKey<T>
- defaultValue: T
Optional
treatDefaultAsFactory: false
Returns T
- inject<T>(key, defaultValue, treatDefaultAsFactory): T
Parameters
- key: string | InjectionKey<T>
- defaultValue: T | (() => T)
- treatDefaultAsFactory: true
Returns T