I have both ng-click and ng-touch on a button used for search.
On desktop the search and the functions called in ng-click work properly.
On mobile on the other side the search button stops working because of the ng-click I think.
I there a solution to disable ng-click on mobile? Or another solution to this problem? I need them both so I can't just remove ng-click.
Thank you.
If you can use third party libs I recommend you using AngularHammer. I tested it in platforms where we have both desktop and mobile apps and is working really well.
https://ryanmullins.github.io/angular-hammer/
Using this lib and changing
ng-clickandng-touchforhm-tapshould work.This is an example