Interface defining a Class type provider.
For example:
const configServiceProvider = { provide: ConfigService, useClass: process.env.NODE_ENV === 'development' ? DevelopmentConfigService : ProductionConfigService, };
Use class
Injection scopes
Injection token
Optional enum defining lifetime of the provider that is injected.
Type (class name) of provider (instance to be injected).
Generated using TypeDoc
Interface defining a Class type provider.
For example:
const configServiceProvider = { provide: ConfigService, useClass: process.env.NODE_ENV === 'development' ? DevelopmentConfigService : ProductionConfigService, };
Use class
Injection scopes