MCPcopy Create free account
hub / github.com/angular/angular / createApplicationRefInjector

Function createApplicationRefInjector

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

Source from the content-addressed store, hash-verified

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

Callers 2

createApplicationRefFunction · 0.85

Calls 1

Tested by

no test coverage detected