anchir tag reloads same page and triggers a function code example
Example: anchor click event angular refresh page
<a href="javascript:void(0);" (click)="yourClickEvent();">A Tag</a>
<a href="javascript:void(0);" (click)="yourClickEvent();">A Tag</a>