schartier / angular-farbtastic

Angular.js directive version of the farbtastic color picker
http://sebastien.chartier.pro/angular-farbtastic/
GNU General Public License v2.0
13 stars 7 forks source link

ngModel changes are not being pushed to color picker #3

Closed jpmitche11 closed 10 years ago

jpmitche11 commented 10 years ago

If the color value is changed in the scope, the color picker is not being updated.

To fix this, I implemented the ngModel.$render function, which is responsible for updating the view value of form controls any time the model value is changed.

Here is a plunkr that illustrates the problem: http://plnkr.co/edit/4bqNCu?p=preview

schartier commented 10 years ago

That's great JP! Thanks a lot :)...