angular/packages/compiler/src/template_parser
Kristiyan Kostadinov cbe6e1ffcf refactor(compiler): allow some invalid expressions in two-way bindings that previously worked by accident (#54154)
In one of the earlier commits, the logic that appends `=$event` before parsing two-way bindings was removed and some validation was added to prevent unassignable expressions from being used. This ended up being problematic, because previously the parser was incorrectly allowing some invalid expressions which users came to depend on. For example, it transformed `[(value)]="a && a.b"` to `a && (a.b = $event)`.

These changes add some special cases for the common breakages that came up during the TGP.

PR Close #54154
2024-02-01 14:39:32 +00:00
..
binding_parser.ts refactor(compiler): allow some invalid expressions in two-way bindings that previously worked by accident (#54154) 2024-02-01 14:39:32 +00:00
template_preparser.ts refactor(compiler): make template preparser null-safe (#44411) 2022-01-04 15:54:10 -08:00