Try this, i think this is what you are trying to do.
Use routerLinkActive
to specify the custom css class anchor-to-text
<a mat-button [routerLink]="'/'" routerLinkActive="anchor-to-text"> Home </a>
in your navbar component css file write our own css to make the anchor tag look like plain text
.anchor-to-text {
cursor:text;
color:inherit;
text-decoration:none;
pointer-events:none;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…