scttcper / ngx-color

🎨 Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
https://ngx-color.vercel.app
MIT License
436 stars 55 forks source link

Value accessor support #343

Closed mmuenker closed 3 years ago

mmuenker commented 3 years ago

It would be great if ngx-color would support for the value accessor concept of angular forms.

This would allow a simpler integration into a form.

<color-block [(ngModel)]="widget.color"></color-block>
<color-block formControlName="color"></color-block>

If I find some time in the next few days I will make a pull request with these changes.

scttcper commented 3 years ago

this is supported now right?

mmuenker commented 3 years ago

yes in version 7.2.0 this is supported.

https://stackblitz.com/edit/angular-ngx-color-value-accessor-demo?file=src/app/app.component.html