legalthings / angular-signature

HTML5 canvas based smooth signature drawing as angularJS directive (http://szimek.github.io/signature_pad/)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

signaturePad undefined. Why is this coming back undefined.

Go4th opened this issue · comments

commented

I'm getting this error in my console.
SignaturePad is not defined
at link (http://localhost:8100/lib/signature.js:81:34)

When I click into the signature.js to this line:character,
scope.signaturePad = new SignaturePad(canvas);

How can I fix this?

You need to load the signaturepad js library. This plugin depends on it.

<script src="https://cdnjs.cloudflare.com/ajax/libs/signature_pad/1.5.3/signature_pad.min.js"></script>