I have posted the same question in different way here SiganaturePad.Now I dont have idea to handle this case. I am using $ionicModal to populate the SignaturePad with canvas as
Unfortunately the built-in jQuery lite is very limiting. Luckily, looking up an element by ID is pretty easy:
So instead of:
var canvas=angular.element("#signature-pad");
just do:
var canvas=angular.element(document.getElementById("signature-pad"));