Page Contents
Home > @loopback/context > injectable > provider
injectable.provider() function
@injectable.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<unknown>) => void;
Parameters
Parameter | Type | Description |
---|---|---|
specs | BindingSpec[] |
Returns:
(target: Constructor<unknown>) => void