Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

add an option to provide a SignaturePad object #58

Open
marcin-wosinek opened this issue May 26, 2017 · 0 comments
Open

add an option to provide a SignaturePad object #58

marcin-wosinek opened this issue May 26, 2017 · 0 comments

Comments

@marcin-wosinek
Copy link

marcin-wosinek commented May 26, 2017

To allow easier integration with projects using webpack; so the following code works:

require('angular-signature');

angular.module('ownModule'), [
  'signature'
].value('SignaturePad', require('signature_pad'));

without putting anything on the global scope.

adding:

angular.module('signature').value('SignaturePad', SignaturePad)

in signature.js & using DI for SignaturePad should do a trick

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant