Page Contents
Home > @loopback/core > Component
Component interface
A component declares a set of artifacts so that they can be contributed to an application as a group
Signature:
export interface Component
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
Binding[] |
(Optional) An array of bindings to be aded to the application context. | ||
|
(Optional) A map of classes to be bound to the application context. | |||
|
(Optional) An array of component classes | |||
|
(Optional) An array of controller classes | |||
|
(Optional) | |||
|
(Optional) A map of providers to be bound to the application context | |||
|
{ [name: string]: Constructor<Server>; } |
(Optional) A map of name/class pairs for servers | ||
|
(Optional) An array of service or provider classes |