Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ng-click fires twice in response to a single tap

$
0
0

I am having a similar issue on IE11. with Ionic 1.1.1 and 1.2. When I put a breakpoint on the goBack function, I see that it consistently fires twice for some reason. IE10 works fine.
HTML
<ion-nav-buttons side="left">
<button nav-clear ng-click="goBack()" class="button icon-left ion-chevron-left button-clear"> Back </button>
</ion-nav-buttons>
<ion-nav-buttons side="secondary">
</ion-nav-buttons>

 Javascript

$scope.goBack = function () {
//if history go back one, else go back to main
if ($ionicHistory.backTitle()) {
$ionicHistory.goBack(-1);
} else {
$state.go('app.main');
}
};


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>