ruhley / angular-color-picker

Vanilla AngularJS Color Picker Directive with no requirement on jQuery
http://ruhley.github.io/angular-color-picker/
MIT License
165 stars 78 forks source link

Console error when setting format option in HTML #102

Closed bouks closed 8 years ago

bouks commented 8 years ago

Hi.

When assigning options in HTML like this: <color-picker class='col-sm-1' ng-model="entity.color" options="{format:'hex',,swatchOnly:true}" /></color-picker>

I get a compile error: Error: [$compile:nonassign] http://errors.angularjs.org/1.5.8/$compile/nonassign?p0=%7Bformat%3A'hex'%2CswatchOnly%3Atrue%7D&p1=options&p2=colorPicker

But it's working... :)

colorpicker: 2.4.1 tinycolor: 1.4.1 angular: 1.5.8

ruhley commented 8 years ago

Fixed in commit 32d8857d80e2835568f20c0fbdb58cf31c9bd68c and released in v2.4.2