Using {{}} interpolation in an expression causes toUpperCase error #27740
Labels
area: compiler
Issues related to `ngc`, Angular's template compiler
compiler: parser
freq1: low
P4
A relatively minor issue that is not relevant to core functions
state: confirmed
state: has PR
type: bug/fix
Milestone
Accidental use of interpolation expressions inside an existing expression context results in a strange error.
Example:
results in:
Live example here: https://stackblitz.com/edit/touppercase-of-undefined?file=src/app/app.component.html
Instead of throwing a more useful syntax error, we crash (probably in the attempt to throw the useful error).
The text was updated successfully, but these errors were encountered: