Alberplz / angular2-color-picker

Angular 2 Color Picker Directive, no dependences required.
MIT License
185 stars 82 forks source link

Show the dialog permanently not working #59

Open theunreal opened 7 years ago

theunreal commented 7 years ago

I'm trying to use:

private color;

<span [(colorPicker)]="color"     
      [cpType]="'fixed'"
      [style.background]="color"
      [cpToggle]="true"></span>

shows the following error: Error in ./DialogComponent class DialogComponent - inline template:30:182 caused by: Cannot read property 'a' of undefined

What's wrong?

Gillardo commented 7 years ago

I get the same problem....Any news on this??

Gillardo commented 7 years ago

anyone?

SpComb commented 7 years ago

Need to use [cpDialogDisplay]="'inline'" instead, the literal example code seems to be outdated: https://github.com/Alberplz/angular2-color-picker/blob/master/examples/app/demo.html#L309