UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

34 lines (22 loc) 844 B
--- lang: en title: 'API docs: context.binding.once_1' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context permalink: /doc/en/lb4/apidocs.context.binding.once_1.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [Binding](./context.binding.md) &gt; [once](./context.binding.once_1.md) ## Binding.once() method <b>Signature:</b> ```typescript once(event: string | symbol, listener: (...args: any[]) => void): this; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | event | string \| symbol | | | listener | (...args: any\[\]) =&gt; void | | <b>Returns:</b> this