@loopback/docs
Version:
Documentation for LoopBack 4
36 lines (22 loc) • 884 B
Markdown
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) > [@loopback/context](./context.md) > [bind](./context.bind.md) > [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`