@loopback/docs
Version:
Documentation for LoopBack 4
34 lines (22 loc) • 995 B
Markdown
---
lang: en
title: 'API docs: service-proxy.applicationwithservices.component'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/service-proxy
permalink: /doc/en/lb4/apidocs.service-proxy.applicationwithservices.component.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) > [component](./service-proxy.applicationwithservices.component.md)
## ApplicationWithServices.component() method
<b>Signature:</b>
```typescript
component(component: Class<{}>, name?: string): Binding;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| component | [Class](./service-proxy.class.md)<!-- --><{}> | |
| name | string | |
<b>Returns:</b>
[Binding](./context.binding.md)