mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Reactive logic in forms is not intended to mutate state, but this was poorly communicated by the permissive and highly mutable field context provided to all logic functions. This change splits all of the state-related API into writable and readonly interfaces. * Top-level functions that produce a `FieldTree` (e.g. `form()`) expose writable signals (e.g. `value: WritableSignal<T>`) and mutating methods (e.g. `markAsDirty()`). * Reactive logic expose readonly signals (e.g. `value: Signal<T>`) and omit mutating methods. |
||
|---|---|---|
| .. | ||
| signals | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||