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>>): void;

Parameters

Parameter Type Description
event ContextEventType  
binding Readonly<Binding<unknown>>  

Returns:

void