Page Contents

Home > @loopback/context > Context > on

Context.on() method

Signature:

on(event: string | symbol, listener: (...args: any[]) => void): this;

Parameters

Parameter Type Description
event string | symbol  
listener (…args: any[]) => void  

Returns:

this