@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
34 lines (22 loc) • 1.15 kB
Markdown
---
lang: en
title: 'API docs: service-proxy.applicationwithservices.serviceprovider'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/service-proxy
permalink: /doc/en/lb4/apidocs.service-proxy.applicationwithservices.serviceprovider.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/service-proxy](./service-proxy.md) > [ApplicationWithServices](./service-proxy.applicationwithservices.md) > [serviceProvider](./service-proxy.applicationwithservices.serviceprovider.md)
## ApplicationWithServices.serviceProvider() method
<b>Signature:</b>
```typescript
serviceProvider<S>(provider: Constructor<Provider<S>>, name?: string): Binding<S>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| provider | [Constructor](./context.constructor.md)<!-- --><[Provider](./context.provider.md)<!-- --><S>> | |
| name | string | |
<b>Returns:</b>
[Binding](./context.binding.md)<!-- --><S>