UNPKG

@loopback/docs

Version:
36 lines (22 loc) 884 B
--- lang: en title: 'API docs: context.bind.provider' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.context.bind.provider.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [bind](./context.bind.md) &gt; [provider](./context.bind.provider.md) ## bind.provider() function `@bind.provider` to denote a provider class A list of binding scope/tags or template functions to configure the binding <b>Signature:</b> ```typescript function provider(...specs: BindingSpec[]): (target: Constructor<Provider<unknown>>) => void; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | specs | <code>BindingSpec[]</code> | | <b>Returns:</b> `(target: Constructor<Provider<unknown>>) => void`