W3cubDocs

/Angular 7

createInjector

function

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

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

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/core/createInjector