@loopback/docs
Version:
Documentation for LoopBack 4
35 lines (24 loc) • 1.45 kB
Markdown
---
lang: en
title: 'API docs: core.component'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
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 cane be contributed to an application as a group
<b>Signature:</b>
```typescript
export interface Component
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [bindings](./core.component.bindings.md) | <code>Binding[]</code> | An array of bindings to be aded to the application context. |
| [classes](./core.component.classes.md) | <code>ClassMap</code> | A map of classes to be bound to the application context. |
| [controllers](./core.component.controllers.md) | <code>ControllerClass[]</code> | An array of controller classes |
| [lifeCycleObservers](./core.component.lifecycleobservers.md) | <code>Constructor<LifeCycleObserver>[]</code> | |
| [providers](./core.component.providers.md) | <code>ProviderMap</code> | A map of providers to be bound to the application context |
| [servers](./core.component.servers.md) | <code>{</code><br/><code> [name: string]: Constructor<Server>;</code><br/><code> }</code> | A map of name/class pairs for servers |