We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useTemplateRef
1 parent 4d1e2d6 commit 3e462adCopy full SHA for 3e462ad
packages/language-core/lib/codegen/template/element.ts
@@ -602,7 +602,7 @@ function* generateReferencesForElements(
602
);
603
yield ` } */${endOfLine}`;
604
605
- if (variableNameRegex.test(content)) {
+ if (variableNameRegex.test(content) && !options.templateRefNames.has(content)) {
606
ctx.accessExternalVariable(content, startOffset);
607
}
608
0 commit comments