MCPcopy
hub / github.com/angular/angular / createEnvironmentInjector

Function createEnvironmentInjector

packages/core/src/render3/ng_module_ref.ts:161–173  ·  view source on GitHub ↗
(
  providers: Array<Provider | EnvironmentProviders>,
  parent: EnvironmentInjector,
  debugName: string | null = null,
)

Source from the content-addressed store, hash-verified

159 * @publicApi
160 */
161export function createEnvironmentInjector(
162 providers: Array<Provider | EnvironmentProviders>,
163 parent: EnvironmentInjector,
164 debugName: string | null = null,
165): EnvironmentInjector {
166 const adapter = new EnvironmentNgModuleRefAdapter({
167 providers,
168 parent,
169 debugName,
170 runEnvironmentInitializers: true,
171 });
172 return adapter.injector;
173}

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…