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[] (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.
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