Don't use an anchor link if you don't want to navigate. I guess that this is for collapse and expand. If you want your element to look as an anchor link, then just add css style to it. Your class name: datatable-icon-right indicates that your showing an icon. Use a div or i. you dont have to add tha bold tag
around your text. Just add font-weight:bold in datatable-icon-right. Hope it helps
Updated
I had a look at the ngx-datatable project. I found this in the grouping example
<ng-template let-group="group" let-expanded="expanded" ngx-datatable-group-header-template>
<div style="padding-left:5px;">
<a href="#"
[class.datatable-icon-right]="!expanded"
[class.datatable-icon-down]="expanded"
title="Expand/Collapse Group"
(click)="toggleExpandGroup(group)">
<b>Age: {{ group.value[0].age }}</b>
</a>
</div>
</ng-template>
You are free to add any placeholder for the expand element. Just add a div instead of anchor. If the style looks weird then just add an extra class to your div and style it as you want. ex:
.datatable-group-header .your-class{cursor:pointer...}