W3cubDocs

/Angular

createEnvironmentInjector

function

Create a new environment injector.

See more...

createEnvironmentInjector(providers: (Provider | EnvironmentProviders)[], parent: EnvironmentInjector, debugName: string = null): EnvironmentInjector

Parameters
providers (Provider | EnvironmentProviders)[]

An array of providers.

parent EnvironmentInjector

A parent environment injector.

debugName string

An optional name for this injector instance, which will be used in error messages.

Optional. Default is null.

Returns

EnvironmentInjector

Description

Learn more about environment injectors in this guide.

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/createEnvironmentInjector