Content-Length: 253616 | pFad | http://github.com/angular/angular/issues/61643

B4 @let doesn't support string interpolation using @let var = '{{ variable }}' syntax · Issue #61643 · angular/angular · GitHub
Skip to content

@let doesn't support string interpolation using @let var = '{{ variable }}' syntax #61643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
YanGeruch opened this issue May 23, 2025 · 3 comments
Labels
area: language-service Issues related to Angular's VS Code language service
Milestone

Comments

@YanGeruch
Copy link

YanGeruch commented May 23, 2025

Which @angular/* package(s) are the source of the bug?

compiler

Is this a regression?

No

Description

@let template syntax doesn't support standard angular interpolation syntax like @let var = '{{ variable }}'. meanwhile language services highlight these variables inside strings as interpolated.

Image

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-6wvun8yy?file=src%2Fmain.ts

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 19.2.3
Node: 18.20.4
Package Manager: npm 10.7.0
OS: win32 x64

Angular: 19.2.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1902.3
@angular-devkit/build-angular   19.2.3
@angular-devkit/core            19.2.3
@angular-devkit/schematics      19.2.3
@angular/cdk                    19.2.3
@angular/cli                    19.2.3
@angular/material               19.2.3
@schematics/angular             19.2.3
rxjs                            7.8.1
typescript                      5.8.2
zone.js                         0.15.0

Anything else?

No response

@YanGeruch YanGeruch changed the title @let doesn't support string interpolation using @let = '{{ variable }}' syntax @let doesn't support string interpolation using @let var = '{{ variable }}' syntax May 23, 2025
@YanGeruch
Copy link
Author

on the other note interpolated signals have their name highlighted correctly but parenthesis () are highlighted as plain strings. (as you can see on screenshot). so there is also issue in language services

@JoostK
Copy link
Member

JoostK commented May 23, 2025

The strings here are already Angular binding expressions, so it is correct that interpolation syntax cannot be used. This is therefore a highlighting issue.

@JoostK JoostK added the area: language-service Issues related to Angular's VS Code language service label May 23, 2025
@ngbot ngbot bot added this to the needsTriage milestone May 23, 2025
@JoostK
Copy link
Member

JoostK commented May 23, 2025

That said, highlighting is implemented in https://github.com/angular/vscode-ng-language-service, not in the language service support in the compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: language-service Issues related to Angular's VS Code language service
Projects
None yet
Development

No branches or pull requests

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular/issues/61643

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy