mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
In the past two-way bindings used to be interpreted as `foo = $event` at the parser level. In #54065 it was changed to preserve the actual expression, because it was problematic for supporting two-way binding to signals. This unintentionally ended up causing the TCB to two-way bindings to look something like `someOutput.subscribe($event => expr);` which does nothing. It largely hasn't been a problem, because the input side of two-way bindings was still being checked, except for the case where the input side of the two-way binding has a wider type than the output side. These changes re-add type checking for the output side by generating the following TCB instead: ``` someOutput.subscribe($event => { var _t1 = unwrapSignalValue(this.someField); _t1 = $event; }); ``` PR Close #59002 |
||
|---|---|---|
| .. | ||
| legacy | ||
| adapters_spec.ts | ||
| BUILD.bazel | ||
| code_fixes_spec.ts | ||
| compiler_spec.ts | ||
| completions_spec.ts | ||
| definitions_spec.ts | ||
| diagnostic_spec.ts | ||
| get_outlining_spans_spec.ts | ||
| get_template_location_for_component_spec.ts | ||
| gettcb_spec.ts | ||
| quick_info_spec.ts | ||
| references_and_rename_spec.ts | ||
| signal_input_refactoring_action_spec.ts | ||
| signal_queries_refactoring_action_spec.ts | ||
| signature_help_spec.ts | ||
| ts_utils_spec.ts | ||
| type_definitions_spec.ts | ||