Skip to content

Instantly share code, notes, and snippets.

@2roy999
2roy999 / angular + signature_pad
Created May 12, 2015
A angular directive to signature_pad
View angular + signature_pad
angular.module('SignaturePad', [])
.directive('SignaturePad', function () {
return {
restrict: 'A',
require: '?ngModel',
link: function (scope, element, attrs, ngModel) {
if (!ngModel) return;
var signaturePad = new SignaturePad(element[0]);
You can’t perform that action at this time.