I am using the mat nav list component for tab and navigation purpose inside my application. It works perfectly on front end but throws error on test case.
Getting the below error from karma.
There is no directive with "exportAs" set to "routerLinkActive" (" *ngFor="let tab of tabs"
[routerLink]="tab.path"
[routerLinkActive] [ERROR ->]#rla="routerLinkActive"
[active]="rla.isActive"
selectedIndex="0"
component.html
<nav mat-tab-nav-bar>
<a
mat-tab-link
*ngFor="let tab of tabs"
[routerLink]="tab.path"
[routerLinkActive] #rla="routerLinkActive"
[active]="rla.isActive"
selectedIndex="0"
>
<i class="{{tab.icon}}"></i>
{{ tab.label }}
</a>
</nav>