angular/packages/core/schematics/test
Kristiyan Kostadinov fb540e169a feat(core): add migration for invalid two-way bindings (#54630)
As a part of #54154, an old parser behavior came up where two-way bindings were parsed by appending `= $event` to the event side. This was problematic, because it allowed some non-writable expressions to be passed into two-way bindings.

These changes introduce a migration that will change the two-way bindings into two separate input/output bindings that represent the old behavior so that in a future version we can throw a parser error for the invalid expressions.

```ts
// Before
@Component({
  template: `<input [(ngModel)]="a && b"/>`
})
export class MyComp {}

// After
@Component({
  template: `<input [ngModel]="a && b" (ngModelChange)="a && (b = $event)"/>`
})
export class MyComp {}
```

PR Close #54630
2024-02-28 18:06:23 +01:00
..
google3 refactor(migrations): remove migrations from previous versions (#49603) 2023-03-28 11:42:00 -07:00
all-migrations.spec.ts test: remove usages of deprecated runSchematicAsync function (#48745) 2023-01-17 09:13:39 -08:00
block_template_entities_spec.ts fix(migrations): handle nested classes in block entities migration (#52309) 2023-10-24 14:34:16 -07:00
BUILD.bazel feat(core): add migration for invalid two-way bindings (#54630) 2024-02-28 18:06:23 +01:00
compiler_options_spec.ts feat(migrations): schematic to remove deprecated CompilerOptions properties (#49672) 2023-10-10 09:35:55 -07:00
control_flow_migration_spec.ts fix(migrations): resolve infinite loop for a single line element with a long tag name and angle bracket on a new line (#54588) 2024-02-23 11:40:27 -08:00
helpers.ts fix(migrations): do not incorrectly add todo for @Injectable or @Pipe (#37732) 2020-06-25 14:22:08 -07:00
invalid_two_way_bindings_spec.ts feat(core): add migration for invalid two-way bindings (#54630) 2024-02-28 18:06:23 +01:00
project_tsconfig_paths_spec.ts build: update Angular tooling packages to 15.0.0-next.3 (#47584) 2022-09-30 10:53:04 -07:00
standalone_migration_spec.ts fix(migrations): error in standalone migration when non-array value is used as declarations in TestBed (#54122) 2024-01-29 15:40:05 +00:00
transfer_state_spec.ts feat(migrations): Schematics for TransferState, StateKey and makeStateKey migration. (#49594) 2023-10-10 13:12:36 -07:00