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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -