In Angular 1.x I can do the following to create a link which does basically nothing:
My Link
But the same tag
You have prevent the default browser behaviour. But you don’t need to create a directive to accomplish that.
It’s easy as the following example:
my.component.html
Link
my.component.ts
goToPage(pageIndex, event) {
event.preventDefault();
console.log(pageIndex);
}