dimanche 3 mai 2015

[AngularJS] [Ionic] ng-click called twice

When I click on a <A> tag having a ng-click, the ng-click is called twice.

For solving this problem, I use the new ng-click provided in the module ngTouch.


The original ng-click provided inside the ng core :
https://docs.angularjs.org/api/ng/directive/ngClick

The new ng-click inside the ngTouch module :
https://docs.angularjs.org/api/ngTouch


For calling the ng-click in ngTouch : 

<script src="angular.js">
<script src="angular-touch.js">
angular.module('app', ['ngTouch']);

Categories