Url is changing like expected in while clicking but that particular route is not getting loaded. Please find the below code for reference.
HTML
<a
mat-tab-link
*ngFor="let routeLink of routeLinks; let i = index"
[routerLink]="routeLink.link"
[routerLinkActive]="'mat-tab-link-active'"
#rla="routerLinkActive"
class="mat-tab-link"
>
{{ routeLink.label }}
</a>
TS
const path = `/site/`;
this.routeLinks = [
{
key: 'network',
link: path + 'network'
},
{
key: 'subnets',
link: path + 'subnets'
}
];