I am using Angular2 RC3 and the new router. My HTML ...
<nav>
<a [routerLink]="['/route1']" [routerLinkActive]="['active']">Route 1</a>
<a [routerLink]="['/route2']" [routerLinkActive]="['active']">Route 2</a>
</nav>
routerLinkActive applies the 'active' class according to the selected link. Works great.
Problem is by adding [routerLinkActive] my unit tests now fail with ...
undefined is not an object (evaluating 'router.events.subscribe')
anyone got a fix for this?
many thanks