I’m using angular 1.6.4, I have the following element:
Text
What I need is the element to be a regular link and call trackJobClick every time is clicked.
Everything is working fine when you click it with the left button or ctrl (or cmd) + left button, but the function is not being called when I use my middle button (wheel). When I click using the wheel the link opens in a new tab (thats correct) but I also need to execute the function.
Have been googling for a while but can’t find any solution, is there any easy way? Do I need to use a directive? I found https://github.com/thiagofaleiro/ng-middle-click/ but can’t make it work.
Thanks in advance!
Source: AngularJS
from Angular Questions https://angularquestions.com/2017/10/05/angular-js-ng-click-with-mouse-middle-button/
via @lzomedia #developer #freelance #web #lzomedia.com
No comments:
Post a Comment