UNPKG

@loopback/docs

Version:
33 lines (20 loc) 675 B
--- lang: en title: 'API docs: core.component.bindings' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.core.component.bindings.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/core](./core.md) &gt; [Component](./core.component.md) &gt; [bindings](./core.component.bindings.md) ## Component.bindings property An array of bindings to be aded to the application context. <b>Signature:</b> ```typescript bindings?: Binding[]; ``` ## Example ```ts const bindingX = Binding.bind('x').to('Value X'); this.bindings = [bindingX] ```