javascript - Element trigger click event doesn't work with ionic -
i need pass click event controller used code:
angular.element(document.queryselectorall('#cal')).triggerhandler('click');
in browser works when put ionic serve didn't work on mobile
you can write in way in controller.
angular.element(document).ready(function () { angular.element(document.queryselectorall('#cal')).triggerhandler('click'); //or angular.element(document.queryselectorall('#cal')).trigger('click'); });
Comments
Post a Comment