Given a routing link:
<li [routerLink]="['Main']"><a>Main page</a></li>
The framework automatically assigns the class router-link-active
when the path matches the route named "Main". What if I wanted to give it a custom class (possibly without injecting Location
or any other service in the controller)?