@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
34 lines (22 loc) • 856 B
Markdown
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) > [@loopback/context](./context.md) > [ContextView](./context.contextview.md) > [on](./context.contextview.on_5.md)
## ContextView.on() method
<b>Signature:</b>
```typescript
on(event: string | symbol, listener: (...args: any[]) => void): this;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| event | string \| symbol | |
| listener | (...args: any\[\]) => void | |
<b>Returns:</b>
this