Page Contents
Home > @loopback/context > ContextView > observe
ContextView.observe() method
Listen on bind
or unbind
and invalidate the cache
Signature:
observe(event: ContextEventType, binding: Readonly<Binding<unknown>>, context: Context): void;
Parameters
Parameter | Type | Description |
---|---|---|
event | ContextEventType | |
binding | Readonly<Binding<unknown>> | |
context | Context |
Returns:
void