MCPcopy Index your code
hub / github.com/angular/angular / createApplicationRefInjector

Function createApplicationRefInjector

packages/core/test/application_ref_spec.ts:295–299  ·  view source on GitHub ↗
(parentInjector: EnvironmentInjector)

Source from the content-addressed store, hash-verified

293 // app-level injector). It is needed to verify `ApplicationRef.destroy` scenarios, which
294 // includes destroying an underlying injector.
295 function createApplicationRefInjector(parentInjector: EnvironmentInjector) {
296 const extraProviders = [{provide: ApplicationRef, useClass: ApplicationRef}];
297
298 return createEnvironmentInjector(extraProviders, parentInjector);
299 }
300
301 function createApplicationRef(parentInjector: EnvironmentInjector) {
302 const injector = createApplicationRefInjector(parentInjector);

Callers 2

createApplicationRefFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…