I'm using a function called with ng-click
, through a link (Anchor).
However, because of the hash #
, the page is "jumping" every time I click that link.
My code is this:
<a ng-click="openImageModal(request)" href="#">
Abrir modal
</a>
I would like to make a preventDefault
in this link, so that it executes the function of angularjs
, but without "jumping" the page, because of the hash #
.
How to do this in AngularJS
?
I would like a solution without jQuery , because I want to get rid of dependency on it.