I am trying to attach click event to anchor tags (coming from ajax) and block the default redirection. How can I do it in angular ?
I had issues with the page reloading but was able to avoid that with routerlink=".":
My Function
I received inspiration from the Angular Material docs on buttons: https://material.angular.io/components/button/examples