@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
37 lines (26 loc) • 1.99 kB
Markdown
---
lang: en
title: 'API docs: core.component'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core
permalink: /doc/en/lb4/apidocs.core.component.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/core](./core.md) > [Component](./core.component.md)
## Component interface
A component declares a set of artifacts so that they can be contributed to an application as a group
<b>Signature:</b>
```typescript
export interface Component
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [bindings?](./core.component.bindings.md) | [Binding](./context.binding.md)<!-- -->\[\] | <i>(Optional)</i> An array of bindings to be aded to the application context. |
| [classes?](./core.component.classes.md) | [ClassMap](./core.classmap.md) | <i>(Optional)</i> A map of classes to be bound to the application context. |
| [controllers?](./core.component.controllers.md) | [ControllerClass](./core.controllerclass.md)<!-- -->\[\] | <i>(Optional)</i> An array of controller classes |
| [lifeCycleObservers?](./core.component.lifecycleobservers.md) | [Constructor](./context.constructor.md)<!-- --><[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>\[\] | <i>(Optional)</i> |
| [providers?](./core.component.providers.md) | [ProviderMap](./core.providermap.md) | <i>(Optional)</i> A map of providers to be bound to the application context |
| [servers?](./core.component.servers.md) | { \[name: string\]: [Constructor](./context.constructor.md)<!-- --><[Server](./core.server.md)<!-- -->>; } | <i>(Optional)</i> A map of name/class pairs for servers |
| [services?](./core.component.services.md) | [ServiceOrProviderClass](./core.serviceorproviderclass.md)<!-- -->\[\] | <i>(Optional)</i> An array of service or provider classes |