mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Currently the listener side two-way listeners are parsed by appending `=$event` to the raw expression. This is problematic, because: 1. It can interfere with other expressions (see #37809). 2. It can lead to confusing error messages because users will see code that they didn't write. 3. It doesn't allow us to further manipulate the expression. These changes remove the logic that appends `=$event` to resolve the issue. There's also some new logic that checks the expression after it has been parsed to ensure that the result is an assignable expression. Subsequent commits will update the code that emits the expression to add back the `$event` assignment where it's needed. PR Close #54154 |
||
|---|---|---|
| .. | ||
| utils | ||
| ast_spec.ts | ||
| BUILD.bazel | ||
| lexer_spec.ts | ||
| parser_spec.ts | ||