@loopback/docs
Version:
Documentation for LoopBack 4
33 lines (21 loc) • 875 B
Markdown
lang: en
title: 'API docs: service-proxy.applicationwithservices.component'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
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 | <code>Class<{}></code> | |
| name | <code>string</code> | |
<b>Returns:</b>
`Binding`