Why Angular2 routerLinkActive sets active class to multiple links?

Try to set [routerLinkActiveOptions]=”{exact: true}” to HTML as below : <ul class=”nav nav-tabs”> <li role=”presentation” routerLinkActive=”active” [routerLinkActiveOptions]=”{exact: true}”><a [routerLink]=”[“https://stackoverflow.com/”]”>Home</a></li> <li role=”presentation” routerLinkActive=”active”><a [routerLink]=”[‘/about’]”>About</a></li> <li role=”presentation” routerLinkActive=”active”><a [routerLink]=”[‘/contact’]” >Contact Us</a></li> </ul> How does it work ?## RouterLinkActive does chunk the current route and try to match it’s parts with the RouterLinks you’ve provided. With that in … Read more