Open
Description
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
No
Description
When using quotes in nested template literal there are several bugs :
With {{ }}
:
- If there is an odd number simple quote
'
or double quote"
it display source code (example:{{ `${`test with odd 'simple quote' ' `}` }}
)
With @let
:
- If there is an odd number simple quote
'
or double quote"
it triggers a parsing error - If there is a escaped back quote
\`
it triggers a parsing error
I haven't done any further testing. I imagine this causes other errors.
Please provide a link to a minimal reproduction of the bug
Please provide the exception or error you saw
`NG5002: Unexpected character "EOF" [plugin angular-compiler]`
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 20.0.0
Node: 20.19.1
Package Manager: npm 10.8.2
OS: linux x64
Angular: 20.0.0
... animations, build, cli, common, compiler, compiler-cli, core
... forms, platform-browser, router
Package Version
------------------------------------------------------
@angular-devkit/architect 0.2000.0
@angular-devkit/core 20.0.0
@angular-devkit/schematics 20.0.0
@schematics/angular 20.0.0
rxjs 7.8.2
typescript 5.8.2
zone.js 0.15.0
Anything else?
No response