I want to apply 'active' class to my header nav bar. it is working well with the standard [routerLinkActive] but there is one issue. some of the <li> elements has two situations which makes them active.
I have [/something/inboxes] and [/something/details/:Id] and i want the something tab to be active for these two routes
this is my code:
<li [routerLinkActive]="['active']">
<a [routerLink]="['/something/inboxes']">something</a>
</li>
Note that the inboxes and details are completely different components.
My question is, is there any better and easier way than using [ngClass]