Page Contents

Home > @loopback/context > ANY_TAG_VALUE

ANY_TAG_VALUE variable

A symbol that can be used to match binding tags by name regardless of the value.

Signature:

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.

ctx.findByTag({controller: ANY_TAG_VALUE})