UNPKG

@loopback/docs

Version:
27 lines (17 loc) 709 B
--- lang: en title: 'API docs: context.provider.value' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.context.provider.value.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [Provider](./context.provider.md) &gt; [value](./context.provider.value.md) ## Provider.value() method <b>Signature:</b> ```typescript value(): ValueOrPromise<T>; ``` <b>Returns:</b> `ValueOrPromise<T>` The value to inject to dependents. This method can return a promise too, in which case the IoC framework will resolve this promise to obtain the value to inject.