• Overview
@angular/core

createEnvironmentInjector

function

Create a new environment injector.

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

createEnvironmentInjector

Create a new environment injector.

@paramproviders(Provider | EnvironmentProviders)[]

An array of providers.

@paramparentEnvironmentInjector

A parent environment injector.

@paramdebugNamestring | null

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

Jump to details