@loopback/docs
Version:
Documentation for LoopBack 4
35 lines (22 loc) • 867 B
Markdown
lang: en
title: 'API docs: context.bindingkey.generate'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.bindingkey.generate.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [BindingKey](./context.bindingkey.md) > [generate](./context.bindingkey.generate.md)
## BindingKey.generate() method
Generate a unique binding key with `uuid`
<b>Signature:</b>
```typescript
static generate<T>(namespace?: string): BindingKey<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| namespace | <code>string</code> | Namespace for the binding |
<b>Returns:</b>
`BindingKey<T>`