UNPKG

@loopback/docs

Version:
36 lines (23 loc) 932 B
--- lang: en title: 'API docs: context.inject.tag' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.context.inject.tag.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [inject](./context.inject.md) &gt; [tag](./context.inject.tag.md) ## inject.tag variable Inject an array of values by a tag pattern string or regexp <b>Signature:</b> ```typescript tag: (bindingTag: string | RegExp | import("./value-promise").MapObject<any>, metadata?: InjectionMetadata | undefined) => (target: Object, member: string, methodDescriptorOrParameterIndex?: number | TypedPropertyDescriptor<any> | undefined) => void ``` ## Example ```ts class AuthenticationManager { constructor( @inject.tag('authentication.strategy') public strategies: Strategy[], ) {} } ```