Page Contents
Home > @loopback/context > ContextView > on
ContextView.on() method
The “close” event is emitted when the view is closed (stopped observing context events)
Signature:
on(eventName: 'close', listener: () => void): this;
Parameters
Parameter | Type | Description |
---|---|---|
eventName | ‘close’ | The name of the event - always close . |
listener | () => void | The listener function to call when the event is emitted. |
Returns:
this