Page Contents
Home > @loopback/core > asLifeCycleObserver
asLifeCycleObserver() function
A BindingTemplate
function to configure the binding as life cycle observer by tagging it with CoreTags.LIFE_CYCLE_OBSERVER
.
Signature:
export declare function asLifeCycleObserver<T = unknown>(binding: Binding<T>): Binding<T>;
Parameters
Parameter | Type | Description |
---|---|---|
binding | Binding<T> | Binding object |
Returns:
Binding<T>