Page Contents

Home > @loopback/core > Component > bindings

Component.bindings property

An array of bindings to be aded to the application context.

Signature:

bindings?: Binding[];

Example

const bindingX = Binding.bind('x').to('Value X');
this.bindings = [bindingX]