UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

34 lines (22 loc) 1.03 kB
--- lang: en title: 'API docs: repository.applicationwithrepositories.component' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository permalink: /doc/en/lb4/apidocs.repository.applicationwithrepositories.component.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [ApplicationWithRepositories](./repository.applicationwithrepositories.md) &gt; [component](./repository.applicationwithrepositories.component.md) ## ApplicationWithRepositories.component() method <b>Signature:</b> ```typescript component(component: Class<unknown>, name?: string): Binding; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | component | [Class](./repository.class.md)<!-- -->&lt;unknown&gt; | | | name | string | | <b>Returns:</b> [Binding](./context.binding.md)