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
参数
defType | any | |
parent | Injector | 可选. 默认值是 |
additionalProviders | StaticProvider[] | 可选. 默认值是 |