@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
36 lines (23 loc) • 1.46 kB
Markdown
---
lang: en
title: 'API docs: boot.createcomponentapplicationbooterbinding'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/boot
permalink: /doc/en/lb4/apidocs.boot.createcomponentapplicationbooterbinding.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/boot](./boot.md) > [createComponentApplicationBooterBinding](./boot.createcomponentapplicationbooterbinding.md)
## createComponentApplicationBooterBinding() function
Create a binding to register a booter that boots the component application. Bindings that exist in the component application before `boot` are skipped. Locked bindings in the main application will not be overridden.
<b>Signature:</b>
```typescript
export declare function createComponentApplicationBooterBinding(componentApp: Application & Bootable, filter?: BindingFilter): Binding<Booter>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| componentApp | [Application](./core.application.md) & [Bootable](./boot.bootable.md) | The application exposing a component |
| filter | [BindingFilter](./context.bindingfilter.md) | Binding filter to selected bindings to be added |
<b>Returns:</b>
[Binding](./context.binding.md)<!-- --><[Booter](./boot.booter.md)<!-- -->>