Skip to main content

Interface: ClassProvider<T>

Describes a provider that binds a token to an instance of a specified class. The DI container will instantiate the useClass and inject its dependencies.

Type Parameters​

T​

T = any

The type of the class to be instantiated.

Properties​

provide​

provide: Token<T>

The injection token used to identify this provider.


useClass​

useClass: Type<T>

The class to be instantiated and injected.