Skip to main content

Interface: ValueProvider<T>

Describes a provider that binds a token to a pre-existing value. Useful for injecting configuration objects, constants, or mock objects in tests.

Type Parameters

T

T = any

The type of the value to be injected.

Properties

provide

provide: Token<T>

The injection token used to identify this provider.


useValue

useValue: T

The actual value to be injected when the token is requested.