I had previously used a directive to prevent clicking on a hyperlink:
something along the lines of:
directivesModule.directive('easPreventClick', function() {
return function(scope, element, attrs) {
$(element).click(function(event) {
event.preventDefault();
});
}
});
http://jsfiddle.net/mjb14/EXWkt/14/I'm not sure exactly when this stopped working, but this definitely worked at one point in time. I am guessing this probably stopped working when an updated version of angular came out.
Is there another technique other people out there are using? I need to keep the href around so that a user could right click on a link and open it in another window.