我有2种途径Angular2选择2路与routerLinkActive
{ path: '', component: DefaultComponent },
{ path: 'second', component: SecondComponent }
,而在HTML
<a [routerLink]="['/']" [routerLinkActive]="['active']">default</a>
<a [routerLink]="['/second']" [routerLinkActive]="['active']">second</a>
当我浏览到第二个他们两个有活跃的类。 这是一个错误或想
使用:
"@angular/router": "~3.3.0",