Page Contents

Home > @loopback/context > asBindingTemplate

asBindingTemplate() function

Convert binding scope and tags as a template function

Signature:

export declare function asBindingTemplate<T = unknown>(scopeAndTags: BindingScopeAndTags): BindingTemplate<T>;

Parameters

Parameter Type Description
scopeAndTags [BindingScopeAndTags](/doc/en/lb4/apidocs.context.bindingscopeandtags.html) Binding scope and tags

Returns:

BindingTemplate<T>