@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
36 lines (23 loc) • 1.07 kB
Markdown
---
lang: en
title: 'API docs: boot.bindbooter'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/boot
permalink: /doc/en/lb4/apidocs.boot.bindbooter.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/boot](./boot.md) > [bindBooter](./boot.bindbooter.md)
## bindBooter() function
Method which binds a given Booter to a given Context with the Prefix and Tags expected by the Bootstrapper
<b>Signature:</b>
```typescript
export declare function bindBooter(ctx: Context, booterCls: Constructor<Booter>): Binding;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| ctx | [Context](./context.context.md) | The Context to bind the Booter Class |
| booterCls | [Constructor](./context.constructor.md)<!-- --><[Booter](./boot.booter.md)<!-- -->> | Booter class to be bound |
<b>Returns:</b>
[Binding](./context.binding.md)