我需要在angular2
中使用以下网址domain.com/2017-08-09/test
domain.com/2017-08-09
domain.com/2017-08
domain.com/2017
{ path: '', component: HomeComponent },
{ path: 'test/:year-:month-:day/:slug', component: DetailComponent },
{ path: 'test/:year-:month-:day', component: DayComponent },
{ path: 'test/:year-:month', component: MonthComponent },
{ path: 'test/:year', component: YearComponent }
如果可以,我可以在routerLink上使用它们吗?