UNPKG

@loopback/docs

Version:

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

75 lines (38 loc) 1.11 kB
--- lang: en title: 'API docs: context.contextview.on_5' 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.contextview.on_5.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [ContextView](./context.contextview.md) &gt; [on](./context.contextview.on_5.md) ## ContextView.on() method **Signature:** ```typescript on(event: string | symbol, listener: (...args: any[]) => void): this; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> event </td><td markdown="1"> string \| symbol </td><td markdown="1"> </td></tr> <tr><td markdown="1"> listener </td><td markdown="1"> (...args: any\[\]) =&gt; void </td><td markdown="1"> </td></tr> </tbody></table> **Returns:** this