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>, options?: BindingFromClassOptions): BindingTemplate<T>;
Parameters
Parameter | Type | Description |
---|---|---|
cls | Constructor<T | Provider<T>> | DynamicValueProviderClass<T> | A class with optional @injectable |
options | BindingFromClassOptions | (Optional) |
Returns: