UNPKG

@loopback/docs

Version:
35 lines (24 loc) 1.45 kB
--- 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) &gt; [@loopback/core](./core.md) &gt; [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&lt;LifeCycleObserver&gt;[]</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&lt;Server&gt;;</code><br/><code> }</code> | A map of name/class pairs for servers |