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
bindings?   Binding[] (Optional) An array of bindings to be aded to the application context.
classes?   ClassMap (Optional) A map of classes to be bound to the application context.
components?   Constructor<Component>[] (Optional) An array of component classes
controllers?   ControllerClass[] (Optional) An array of controller classes
lifeCycleObservers?   Constructor<LifeCycleObserver>[] (Optional)
providers?   ProviderMap (Optional) A map of providers to be bound to the application context
servers?   { [name: string]: Constructor<Server>; } (Optional) A map of name/class pairs for servers
services?   ServiceOrProviderClass[] (Optional) An array of service or provider classes