I'm writing an angular app and I'd like to Angular Material Tabs for navigation. The issue that I'm is that when I click in a tab it actually switch between routes but there's no change on styling in the tabs, so seems like the active tab is still the other one.
My code:
<nav md-tab-nav-bar>
<a md-tab-link
[routerLink]="['/page1']"
routerLinkActive #rla="routerLinkActive"
[active]="rla.isActive">
Page1
</a>
<a md-tab-link
[routerLink]="['/page2']"
routerLinkActive #rla="routerLinkActive"
[active]="rla.isActive">
Page2
</a>
</nav>
<router-outlet></router-outlet>