Page Contents

Home > @loopback/context > ContextView > on

ContextView.on() method

The “refresh” event is emitted when the view is refreshed as bindings are added/removed.

Signature:

on(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