Im faced with a term called "Injection context", and trying to figuring out what it actually is. Coz in angular we have following things that somehow related with injection context (listed below):
EnvironmentInjector#runInContext
injectionContext
;runInInjectionContext
;inject()
;
I've figured out that inject()
- can be called from injection context (that is presented as constructor; a factory function, a field initializer,)
I've tried to investigate Ang(https://angular.io/api/core/EnvironmentInjector) - but it's not clear for me at all. So would be great if someone could shed some light on others things that somehow related with this injection context and provide literally use case when we should use it, and for what.