Page Contents
Home > @loopback/context > bind > provider
bind.provider() function
@bind.provider
to denote a provider class
A list of binding scope/tags or template functions to configure the binding
Signature:
function provider(...specs: BindingSpec[]): (target: Constructor<Provider<unknown>>) => void;
Parameters
Parameter | Type | Description |
---|---|---|
specs | BindingSpec[] |
Returns:
(target: Constructor<Provider<unknown>>) => void