I've implemented the tab navigation code as shown below:
<nav mat-tab-nav-bar [selectedIndex]="0">
<a mat-tab-link
*ngFor="let link of navLinks; let i = index;"
[routerLink]="link.path"
routerLinkActive #rla="routerLinkActive"
[active]="rla.isActive">
<div class="link-tab-label">{{link.label}}</div>
<mat-icon class="link-tab-close" (click)="closeTab(i)">close</mat-icon>
</a>
</nav>
However, upon running the project, I encounter the following error message:
compiler.js:485 Uncaught Error: Template parse errors:
Can't bind to 'selectedIndex' since it isn't a known property of 'nav'. ("
<mat-card>
<mat-card-content>
<nav mat-tab-nav-bar [ERROR ->][selectedIndex]="0">
Is there a proper way to use selectedIndex with mat-tab-nav-bar?