Ionic2 - Get Signature value


#1

Hi,

I’m trying to follow https://github.com/lathonez/angular2-signaturepad-demo to get users signature. I’m up to the point where it’s displaying the signature canvas and the user can sign but I don’t know how to get the signature value or clear the canvas based on a clear button. I think the issue is with me because I still don’t fully understand how to bind a custom component

Html:

      <div [formGroup]="sigForm">
        <signature-field formControlName="signatureField" ></signature-field>
        <button ion-button (click)="clearSignature()" >Clear</button>
      </div>
    this.sigForm = fb.group({
       signatureField: '',
     });