Something wrong happens with my application on mobile devices. I have something like this:
<a href="#!/kategori/hva-skjer" ng-click="toggleMenu()">
This is one of link in menu. What I want and what works well on dekstop is closing menu and redirect to proper url from href
attribute.
This wont working on mobile devices (on emulator in chrome devtools too). It's toggling the menu, but without redirection.
When I remove ngTouch
module from dependencies in app bootstrap file, the problem dissapears.
Someone had similar situation and know already solution? Or it's a bug of ngTouch module?
Demo
In your dev tools enable touch emualation and click on links. As you can see toggle
function working when links not.
It's an old bug, that wasn't fixed before this time. Href and ng-click doesn't work together.
Below you see how can you avoid this bug.
https://stackoverflow.com/a/34612541/4245233