Page Contents
Home > @loopback/context > Binding > configure
Binding.configure() method
Create a configuration binding for the given key
Signature:
static configure<V = unknown>(key: BindingAddress): Binding<V>;
Parameters
Parameter | Type | Description |
---|---|---|
key | BindingAddress | Key for the binding to be configured |
Returns:
Binding<V>
Example
const configBinding = Binding.configure('servers.RestServer.server1')
.to({port: 3000});