How to access $ionicModal object elements by id in ionic framework?

前端 未结 1 956
再見小時候
再見小時候 2021-01-23 17:17

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

相关标签:
1条回答
  • 2021-01-23 17:50

    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"));
    
    0 讨论(0)
提交回复
热议问题