I am trying to rewrite my application from being based on a ton of jQuery Widgets to use AngularJS. I am however having trouble finding the best solution to the following problem.
I have an image, which will show an overlay when hovering. To make it work on mobile devices, I instead use a click event to display the hover and to remove it again.
In jQuery I would look at the userAgent and then either add a click event for mobile devices, or for other devices user regular hover effect.
What is the correct way of doing this in AngularJS, without having to use jQuery?