Page Contents

Home > @loopback/core > Component

Component interface

A component declares a set of artifacts so that they cane be contributed to an application as a group

Signature:

export interface Component 

Properties

Property Type Description
bindings Binding[] An array of bindings to be aded to the application context.
classes ClassMap A map of classes to be bound to the application context.
controllers ControllerClass[] An array of controller classes
lifeCycleObservers Constructor<LifeCycleObserver>[]  
providers ProviderMap A map of providers to be bound to the application context
servers {
[name: string]: Constructor<Server>;
}
A map of name/class pairs for servers