I've searched high and low for a solution to this issue, but I haven't been able to find one.
In a particular component, I have a material tab control. However, the active tab doesn't display until I click on one of the tabs on the page.
app.component.html
<nav mat-tab-nav-bar mat-align-tabs="center" mat-stretch-tabs >
<a mat-tab-link *ngFor="let link of NavigateTo" [routerLink]="link.path" routerLinkActive #rla="routerLinkActive"
[active]="rla.isActive">
{{link.label}}
</a>
</nav>
<router-outlet></router-outlet>
app.component.ts
NavigateTo : Array<object> = [
{label:'Employee Master',path:'EmployeeMaster',index:0},
{label:'Table Master',path:'TableMaster',index:1}
];