Page Contents

Home > @loopback/context > Binding > toAlias

Binding.toAlias() method

Bind the key to an alias of another binding

Signature:

toAlias(keyWithPath: BindingAddress<T>): this;

Parameters

Parameter Type Description

keyWithPath

BindingAddress<T>

Target binding key with optional path, such as servers.RestServer.options#apiExplorer

Returns:

this