angular/packages/forms/signals/test/web
Miles Malerba 81772b420d feat(forms): pass field directive to class config
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()
  }
})
```

(cherry picked from commit 348f149e8b)
2025-12-12 08:07:57 -08:00
..
BUILD.bazel feat(forms): add DI option for classes on Field directive 2025-11-25 10:33:41 -05:00
compat_form.spec.ts fix(forms): Reuse key in parent in compat structure 2025-12-09 12:59:27 -08:00
dynamic_binding.spec.ts fix(forms): support dynamic [field] bindings (#65599) 2025-12-03 15:10:49 +01:00
field_directive.spec.ts feat(forms): pass field directive to class config 2025-12-12 08:07:57 -08:00
field_proxy.spec.ts test(forms): test reactive iteration over array field (#64113) 2025-10-24 09:29:29 +02:00
interop.spec.ts fix(forms): debounce updates from interop controls 2025-11-17 16:37:29 +00:00