angular/packages/upgrade/static
Alex Rickabaugh e40a4fa3c7 fix(upgrade): support input signal bindings (#57020)
`@angular/upgrade` writes to inputs when downgrading an Angular 2+ component
into an Angular.JS adapter. Previously, it wrote directly to the input
property, which isn't compatible with input signals. It also handles
`ngOnChanges` directly.

The correct way to support input signals would be to refactor upgrade to use
`ComponentRef.setInput`, which also handles `ngOnChanges` internally.
However, this refactoring might be more breaking since it would change the
timing of certain operations. Instead, this commit updates the code to
recognize `InputSignal` and write it through the `InputSignalNode`. This
avoids the above breaking changes for now, until a bigger refactoring can be
tested.

Fixes #56860.

PR Close #57020
2024-09-26 14:14:15 -07:00
..
src refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
test fix(upgrade): support input signal bindings (#57020) 2024-09-26 14:14:15 -07:00
testing refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
BUILD.bazel docs(docs-infra): Add missing API entries to ADEV (#54530) 2024-02-21 16:41:33 +00:00
common.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
index.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
PACKAGE.md docs: add api doc to sub-packages (#33801) 2019-11-20 14:48:50 -08:00
public_api.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00