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
    
参数
defType any
parent Injector

可选. 默认值是 null.

additionalProviders StaticProvider[]

可选. 默认值是 null.

返回值

Injector