Page Contents

Home > @loopback/context > ContextObserver

ContextObserver interface

Observers of context bind/unbind events

Signature:

export interface ContextObserver 

Properties

Property Modifiers Type Description
[filter?](/doc/en/lb4/apidocs.context.contextobserver.filter.html) [BindingFilter](/doc/en/lb4/apidocs.context.bindingfilter.html) _(Optional)_ An optional filter function to match bindings. If not present, the listener will be notified of all binding events.
[observe](/doc/en/lb4/apidocs.context.contextobserver.observe.html) [ContextObserverFn](/doc/en/lb4/apidocs.context.contextobserverfn.html) Listen on `bind`, `unbind`, or other events