1
我得到角度路由錯誤Angular 2不能匹配路由錯誤
未捕獲(承諾):錯誤:無法匹配任何路由。網址細分:'null' 錯誤:無法匹配任何路線。 URL段:「null'at ApplyRedirects.webpackJsonp .../../../router/@angular/router.es5.js.ApplyRedirects.noMatchError
下面是我的路線對象:
export const ROUTES: Routes = [
{ path: '', component: TrendsComponent},
{ path: 'trends', component: TrendsComponent }
];
我正在使用@ angular/router 4.0.0