I would like tabs to be highlighted for multiple links. I'm not sure if I misunderstood the functionality. following is my code.
<div class="row">
<div class="col-12">
<nb-card size="small">
<nb-route-tabset [tabs]="tabs" fullWidth activeLinkOptions="{exact:
false}"></nb-route-tabset>
</nb-card>
</div>
</div>
My component:
tabs: any[] = [
{
title: 'Contacts',
route: '/addressbook/contact',
icon: 'person-outline',
responsive: true,
},
{
title: 'Companies',
route: '/addressbook/company',
icon: 'people-outline',
responsive: true,
},
{
title: 'Company Types',
route: '/addressbook/companytype/index',
icon: 'grid-outline',
responsive: true,
},
];
Rendered html:
<li _ngcontent-eap-c56="" class="route-tab responsive ng-star-inserted" routerlinkactive="active" tabindex="0" ng-reflect-router-link="/addressbook/companytype/index" ng-reflect-router-link-active-options="{exact:
false}" ng-reflect-router-link-active="active">
I was hoping that "Company Types" tab would be highlighted whenever I visit "/addressbook/companytype/create" as well. is this the expected behavior with "exact:false"?
Any help would be greatly appreciated!