For my Angular 9, app, I have a simple app layout
<app-navbar></app-navbar>
<router-outlet></router-outlet>
The navbar component looks like
<mat-toolbar color="primary">
<mat-toolbar-row>
<h1>My App</h1>
<span class="menu-spacer"></span>
<div>
<a mat-button [routerLink]="'/'"> Home </a>
<a mat-button [routerLink]="'/latest'"> Latest </a>
<a mat-button [routerLink]="'/current'"> Items </a>
</div>
</mat-toolbar-row>
</mat-toolbar>
I'm trying to figure out what the Angular way is to change the link to be just text instead of an anchor if the user is already on that page. What is the proper way to suppress the link generation and just have text if the URL matches what I want to route to?