timdeschryver / ng-signal-forms

120 stars 9 forks source link

Support for ControlValueAccessor #33

Closed mattlocker closed 7 months ago

mattlocker commented 7 months ago

Are there any plans to include support for ControlValueAccessor or introduce a similar concept? From my point of view reusable form components are very important in enterprise apps which may include very complex forms.

timdeschryver commented 7 months ago

Hey @mattlocker have you tried using a CVA with Signal Forms? I was thinking this should just work out of the box because you just bind to a ngModel, which will be read/updated by the CVA.

mattlocker commented 7 months ago

Oh for sure you are right(silly me), thank you for pointing that out. I'll perform my tests and in the meantime, I close the issue.

timdeschryver commented 7 months ago

Cool, let me know how it works. And if you want, you can always contribute to this library by providing an example in an existing form, or in a new form.