Page Contents

Home > @loopback/context > Binding > once

Binding.once() method

The “changed” event is emitted by methods such as tag, inScope, to, and toClass.

Signature:

once(eventName: 'changed', listener: BindingEventListener): this;

Parameters

Parameter Type Description
eventName ‘changed’ The name of the event - always changed.
listener BindingEventListener The listener function to call when the event is emitted.

Returns:

this