MCPcopy
hub / github.com/angular/angular / setTempInjectorRef

Function setTempInjectorRef

packages/upgrade/static/src/angular1_providers.ts:16–18  ·  view source on GitHub ↗
(injector: IInjectorService)

Source from the content-addressed store, hash-verified

14// the stored injector and release the reference to it.
15let tempInjectorRef: IInjectorService | null = null;
16export function setTempInjectorRef(injector: IInjectorService) {
17 tempInjectorRef = injector;
18}
19export function injectorFactory() {
20 if (!tempInjectorRef) {
21 throw new Error('Trying to get the AngularJS injector before it being set.');

Callers 4

downgradeModuleFunction · 0.90
bootstrapMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…