mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Updates signal forms to pass the full `Field` directive to the class configuration functions, rather than just the state. This allows developers to take the element as well as the state into consideration when deciding classes to apply. Closes #65762 BREAKING CHANGE: The shape of `SignalFormsConfig.classes` has changed Previously each function in the `classes` map took a `FieldState`. Now it takes a `Field` directive. For example if you previously had: ``` provideSignalFormsConfig({ classes: { 'my-valid': (state) => state.valid() } }) ``` You would need to update to: ``` provideSignalFormsConfig({ classes: { 'my-valid': ({state}) => state().valid() } }) ``` |
||
|---|---|---|
| .. | ||
| signals | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||