Page Contents

Home > @loopback/context > BindingKey > buildKeyForConfig

BindingKey.buildKeyForConfig() method

Build a binding key for the configuration of the given binding. The format is <key>:$config

Signature:

static buildKeyForConfig<T>(key?: BindingAddress): BindingAddress<T>;

Parameters

Parameter Type Description
key [BindingAddress](/doc/en/lb4/apidocs.context.bindingaddress.html) _(Optional)_ Key of the target binding to be configured

Returns:

BindingAddress<T>