Page Contents

Home > @loopback/context > Provider > value

Provider.value() method

Signature:

value(): ValueOrPromise<T>;

Returns:

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.