Optional list of providers to be injected into the context of the Factory function.
Note:The current module container context is available too.
ProviderModule.create({ id:'FactoryProviderModule', providers: [ DatabaseService, { provide:'DATABASE_SECRET', useFactory: (dbService: DatabaseService) => { // Here you have access to the already resolved `DatabaseService` of the `FactoryProviderModule`. returndbService.getSecret(); }, inject: [DatabaseService] } ] });
Optional list of providers to be injected into the context of the Factory
function
.Note: The current module container context is available too.