first Module
Optional
module2: Module<I, I2>(optional) second Module
Optional
module3: Module<I, I3>(optional) third Module
Optional
module4: Module<I, I4>(optional) fourth Module
Optional
module5: Module<I, I5>(optional) fifth Module
Optional
module6: Module<I, I6>(optional) sixth Module
Optional
module7: Module<I, I7>(optional) seventh Module
Optional
module8: Module<I, I8>(optional) eighth Module
Optional
module9: Module<I, I9>(optional) ninth Module
a new object of type I
Given a set of modules, the inject function returns a lazily evaluated injector that injects dependencies into the requested service when it is requested the first time. Subsequent requests will return the same service.
In the case of cyclic dependencies, an Error will be thrown. This can be fixed by injecting a provider
() => T
instead of aT
.Please note that the arguments may be objects or arrays. However, the result will be an object. Using it with for..of will have no effect.