Page Contents
Home > @loopback/context > BindingKey > generate
BindingKey.generate() method
Generate a universally unique binding key.
Please note the format of they generated key is not specified, you must not rely on any specific formatting (e.g. UUID style).
Signature:
static generate<T>(namespace?: string): BindingKey<T>;
Parameters
Parameter | Type | Description |
---|---|---|
namespace | string | (Optional) Namespace for the binding |
Returns:
BindingKey<T>