@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
33 lines (21 loc) • 947 B
Markdown
lang: en
title: 'API docs: context.any_tag_value'
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.any_tag_value.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [ANY\_TAG\_VALUE](./context.any_tag_value.md)
## ANY\_TAG\_VALUE variable
A symbol that can be used to match binding tags by name regardless of the value.
**Signature:**
```typescript
ANY_TAG_VALUE: TagValueMatcher
```
## Example
The following code matches bindings with tag `{controller: 'A'}` or `{controller: 'controller'}`<!-- -->. But if the tag name 'controller' does not exist for a binding, the binding will NOT be included.
```ts
ctx.findByTag({controller: ANY_TAG_VALUE})
```