Alberplz / angular2-color-picker

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

whenever i try to output the value from color picker it just returns undefined any ideas why ?? #91

Closed Brianmcd48 closed 7 years ago

Brianmcd48 commented 7 years ago

so i'm using an @Input() to import a default setting to set the default color on initialization which it pulls from an API then when it detects a change in the color it updates default value to the new value and using an @Output Event Emitter to fire off the new default back to the parent program. now if i log the value inside my component it shows up as a string value but when i log the value in the parent component it returns an undefined if anyone has got any ideas i would greatly appreciate them.

EDIT: if i output any other string it works just fine so what i'm wondering is the hex value it return(i have all other outputs off so it only returns hex) string or is a different type?

after some playing around with the source code i've solved the issue