On this page
createEnvironmentInjector
function  developer preview 
Create a new environment injector.
createEnvironmentInjector(providers: (Provider | ImportedNgModuleProviders)[], parent: EnvironmentInjector, debugName: string = null): EnvironmentInjector
    Parameters
providers | 
        (Provider | ImportedNgModuleProviders)[] | 
        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   | 
       
Returns
Description
Learn more about environment injectors in this guide.
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
 https://v14.angular.io/api/core/createEnvironmentInjector