@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
35 lines (22 loc) • 1.01 kB
Markdown
---
lang: en
title: 'API docs: context.asbindingtemplate'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.asbindingtemplate.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [asBindingTemplate](./context.asbindingtemplate.md)
## asBindingTemplate() function
Convert binding scope and tags as a template function
<b>Signature:</b>
```typescript
export declare function asBindingTemplate<T = unknown>(scopeAndTags: BindingScopeAndTags): BindingTemplate<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| scopeAndTags | [BindingScopeAndTags](./context.bindingscopeandtags.md) | Binding scope and tags |
<b>Returns:</b>
[BindingTemplate](./context.bindingtemplate.md)<!-- --><T>