Help Angular by taking a 1 minute survey!Go to surveyHome

createInjector

Create a new Injector which is configured using a defType of InjectorType<any>s.

createInjector(defType: any, parent: Injector = null, additionalProviders: StaticProvider[] = null): Injector
      
      createInjector(defType: any, parent: Injector = null, additionalProviders: StaticProvider[] = null): Injector
    
Parameters
defType any
parent Injector

Optional. Default is null.

additionalProviders StaticProvider[]

Optional. Default is null.

Returns

Injector