---
lang: en
title: 'API docs: context.asbindingtemplate'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/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) &gt; [@loopback/context](./context.md) &gt; [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 | <code>BindingScopeAndTags</code> | Binding scope and tags |

<b>Returns:</b>

`BindingTemplate<T>`


