Page Contents

Home > @loopback/context > bindingTemplateFor

bindingTemplateFor() function

Get the binding template for a class with binding metadata

Signature:

export declare function bindingTemplateFor<T>(cls: Constructor<T | Provider<T>> | DynamicValueProviderClass<T>): BindingTemplate<T>;

Parameters

Parameter Type Description
cls Constructor<T | Provider<T>> | DynamicValueProviderClass<T> A class with optional @injectable

Returns:

BindingTemplate<T>