Improve error message when parser fails to process ternaries with escaped quotes #61768
Labels
ai
Issue related to using AI agents
area: compiler
Issues related to `ngc`, Angular's template compiler
compiler: parser
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
No
Description
When using escaped quotes in ternaries in template expressions, Angular parser fails. Here is an example:
Error message:
It'd be great if we can detect those situations and produce a more actionable error message.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-x5cg9cuq?file=src%2Fmain.ts
Please provide the environment you discovered this bug in (run
ng version
)The text was updated successfully, but these errors were encountered: