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


export interface Component 


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
services ServiceOrProviderClass[] An array of service or provider classes