angular/goldens/public-api/core
Paul Gschwendtner bbd918acd3 refactor(core): introduce signal input() function and compiler detection (#53521)
This commit introduces a function for declaring inputs in
components. The function is called `input`. It comes in two flavors:

- `input` for optional inputs with initial values
- `input.required` for required inputs

Inputs are declared as class members, like with `@Input`- except that
the class field will no longer hold the input value directly. Angular
takes control over the input field and exposes the input value as a
signal. The runtime implementation will follow in future commits.

This commit simply introduces:

- initial compiler detection to recognize such inputs in classes
- the initial signature of `input` and `input.required`.

Note: the defer size test is flawed and there is no minification- hence
this commit also needs to incorporate the new dependency graph changes.

PR Close #53521
2023-12-13 15:44:00 -08:00
..
primitives/signals refactor(core): Do not refresh view if producers did not actually change (#52476) 2023-11-02 13:23:49 -07:00
rxjs-interop fix(core): add rejectErrors option to toSignal (#52474) 2023-10-31 14:59:26 -07:00
testing refactor(core): Run ComponentFixture constructor in injection context (#53400) 2023-12-07 09:35:24 -08:00
errors.md refactor: fix a number of typos throughout the codebase (#52249) 2023-10-25 16:51:24 -07:00
global_utils.md refactor(core): drop RootContext object (#47056) 2022-09-13 09:21:34 -07:00
index.md refactor(core): introduce signal input() function and compiler detection (#53521) 2023-12-13 15:44:00 -08:00