Page Contents
Home > @loopback/context > ContextView > once
ContextView.once() method
The “close” event is emitted when the view is closed (stopped observing context events)
Signature:
once(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