function
Create a new environment injector.
createEnvironmentInjector(providers: (Provider | EnvironmentProviders)[], parent: EnvironmentInjector, debugName: string = null): EnvironmentInjector
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 |
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