【发布时间】:2018-02-03 16:48:15
【问题描述】:
子模块
const routes: Routes = [
{ path: '', component: ProcComponent,
children:[{
path: '/LoadProcResultsdata/:procResults', component: ProcResultsComponent,
}]
}
];
App.Module.ts
const routes: Routes = [
{ path: 'app', component: AppComponent },
{ path: 'home', component: HomeComponent },
{ path: 'treeview', component: TreeViewComponent },
{path:'Proc', loadChildren:'app/proc/Proc.Module#ProcModule'}
];
我的代码
this.router.navigate(['/LoadProcResultsdata/'],{ queryParams: { procResults:this.results } });
但我收到以下错误。
core.umd.js:3064 异常:未捕获(承诺中):错误:无法匹配任何路由。 URL 段:'LoadProcResultsdata' 错误:无法匹配任何路由。 URL 段:'LoadProcResultsdata'
【问题讨论】:
标签: angular2-routing angular2-template angular2-directives