Page Contents
Home > @loopback/context > Context > findByTag
Context.findByTag() method
Find bindings using the tag filter. If the filter matches one of the binding tags, the binding is included.
Signature:
findByTag<ValueType = BoundValue>(tagFilter: BindingTag | RegExp): Readonly<Binding<ValueType>>[];
Parameters
| Parameter | Type | Description |
|---|---|---|
|
tagFilter |
BindingTag | RegExp |
A filter for tags. It can be in one of the following forms: - A regular expression, such as |
Returns:
Readonly<Binding<ValueType>>[]