Page Contents
  
 
    
Home > @loopback/context > ContextView > once
ContextView.once() method
The “refresh” event is emitted when the view is refreshed as bindings are added/removed.
Signature:
once(eventName: 'refresh', listener: () => void): this;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| eventName | 'refresh' | The name of the event - always `refresh`. | 
| listener | () => void | The listener function to call when the event is emitted. | 
Returns:
this