sg-signature-pad
v1.2.2
Published
SignaturePad.js portation to es6/webpack
Maintainers
Readme
Angular 1.5/ES6 Signature Pad Component
SignaturePad.js portation to Angular 1.5 Component
Based on:
- szimek signature pad
- legalthings Angular signature
- [angular-web-pack-workflow] (https://github.com/preboot/angular-webpack/)
##Installation
Install this module using npm
npm install sg-signature-pad --saveAdd the module to your app
import angular from 'angular';
import sgSignaturePad from 'sg-signature-pad/lib/index';
const yourApp = angular.module('yourApp', [sgSignaturePad]).name;
export default yourApp;Usage
Component markup
The component stores the signature as base64 encoded image string into the variable passed as "model" param. The signature pad dimensions get defined by the "height" and "width" param.
<sg-signature-pad model="$ctrl.signatureModel" height="(int)" width="(int)"></sg-signature-pad>Todo
- test on touch devices
