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