我有一些代码如下导航=>
App.module =>
RouterModule.forRoot([
{path:"",component:HomeComponent},
{path:"home",component:HomeComponent},
{path:"product",component:ProductComponent},
{path:"service",component:ServiceComponent},
{path:"about",component:AboutComponent},
{path:"**",component:NotFoundComponent}
])
我将主页作为localhost:4200以及localhost:4200 / home的视图,当url如localhost:4200以及localhost:4200 / home时,如何设置Home routerLink的活动类,提前感谢