0

use the angular 1.3.0.beta.2 and corresponding angular-touch. i add a ng-Click directive to the '', this is my code:

the js

app = angular.module('app', ['ngTouch'])

the html

<a href="#/sameHash" ng-click="hideSide()" class="sideIcon">some hash</a>

when click the a tag ,the 'hideSide' function was runn,but the url didn't change. if i remove the ngTouch module, it the 'hideSide' function run, and url change too. i want to use the ngTouch module,how do i get the a link usefull with ngClick

user3032469
  • 299
  • 1
  • 2
  • 10
  • There is open [github issue](https://github.com/angular/angular.js/issues/6001) of `ngTouch` with `ngClick` – Pankaj Parkar Jan 06 '16 at 19:20
  • Possible duplicate of [ngTouch module prevent redirect to url from href attribute](http://stackoverflow.com/questions/22662375/ngtouch-module-prevent-redirect-to-url-from-href-attribute) – Matthew Green Jan 06 '16 at 19:21

0 Answers0