angular/packages/compiler-cli/test/ngtsc
Kristiyan Kostadinov 4eb0165750 fix(compiler): remove support for unassignable expressions in two-way bindings (#55342)
Two-way bindings are meant to represent a property binding to an input and an event binding to an output, e.g. `[(ngModel)]="foo"` represents `[ngModel]="foo" (ngModelChange)="foo = $event"`. Previously due to a quirk in the template parser, we accidentally supported unassignable expressions in two-way bindings.

In #54154 the quirk was fixed, but we kept support or some common expression because of internal usages. Now the internal usages have been cleaned up so the backwards-compatibility code can be deleted.

Externally a migration was added in #54630 that will automatically fix any places that depended on the old behavior.

BREAKING CHANGE:
Angular only supports writable expressions inside of two-way bindings.

PR Close #55342
2024-04-16 17:26:09 +02:00
..
doc_extraction refactor(compiler): Do not extract internal methods. (#54850) 2024-03-27 10:48:05 -07:00
authoring_diagnostics_spec.ts fix(compiler-cli): report cases where initializer APIs are used in a non-directive class (#54993) 2024-03-28 09:17:03 -07:00
authoring_inputs_spec.ts fix(compiler): output input flags as a literal (#55215) 2024-04-04 11:13:52 -07:00
authoring_models_spec.ts fix(compiler): output input flags as a literal (#55215) 2024-04-04 11:13:52 -07:00
authoring_outputs_spec.ts fix(compiler-cli): report errors when initializer APIs are used on private fields (#54981) 2024-03-27 09:54:45 -07:00
authoring_queries_spec.ts fix(compiler-cli): report errors when initializer APIs are used on private fields (#54981) 2024-03-27 09:54:45 -07:00
BUILD.bazel test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
component_indexing_spec.ts refactor(compiler-cli): update to use new file-system interfaces (#40281) 2021-01-08 09:34:44 -08:00
defer_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
env.ts feat(compiler-cli): make it configurable to generate alias reexports (#53937) 2024-01-22 14:20:26 +01:00
extended_template_diagnostics_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
host_directives_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
imports_spec.ts ci: migrate windows job to GHA (#51010) 2023-07-17 14:51:36 +00:00
incremental_error_spec.ts perf(compiler-cli): detect semantic changes and their effect on an incremental rebuild (#40947) 2021-03-08 08:41:19 -08:00
incremental_semantic_changes_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
incremental_spec.ts perf(compiler-cli): optimize NgModule emit for standalone components (#49837) 2023-04-17 14:51:58 +00:00
incremental_typecheck_spec.ts test(compiler-cli): enable incremental re-use type checking with signal inputs (#54819) 2024-03-15 15:09:40 -07:00
local_compilation_spec.ts fix(compiler): output input flags as a literal (#55215) 2024-04-04 11:13:52 -07:00
ls_typecheck_helpers_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
monorepo_spec.ts test(compiler-cli): move testing utils to separate package (#39594) 2020-11-17 11:59:56 -08:00
ngtsc_spec.ts fix(compiler): remove support for unassignable expressions in two-way bindings (#55342) 2024-04-16 17:26:09 +02:00
scope_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
sourcemap_utils.ts test: update source-map tests to account for source-map breaking change (#46888) 2022-07-19 09:40:54 -07:00
standalone_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
template_mapping_spec.ts refactor(compiler): update two-way listener emit in definition builder (#54154) 2024-02-01 14:39:32 +00:00
template_typecheck_spec.ts fix(compiler-cli): use switch statements to narrow Angular switch blocks (#55168) 2024-04-02 16:19:47 +00:00
util.ts refactor(compiler): Add a new helper method getPrimaryAngularDecorator. (#47180) 2022-08-22 10:39:42 -07:00
xi18n_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00