lathonez/angular2-signaturepad-demo

Cannot save data and load signature shows black

Closed this issue · 1 comments

It's a great job for all ng2 lover. Thanks!
Could it be possible to give couple of lines demo codes about save signature and reload signature?
It shows black for me when I do this:
`
public save() {
this.tmpURL = this.signature;
}
public load() {
this.signaturePad.clear();
// Unbinds all event handlers
this.signaturePad.off();

// Rebinds all event handlers
this.signaturePad.on();

console.log('data:' + this.tmpURL);
this.signature = this.signaturePad.fromDataURL(this.tmpURL);

}
`

It's console dataurl display issue. Sorry!