ID显示为“无法匹配任何路由。URL段”的子路由

时间:2018-12-10 12:55:47

标签: javascript angular angular-routing

我的路由结构是这样的

`programs/48/applications`

具有ID

`programs/48/applications/34`

路由的定义如下

{ 
  path: 'applications', pathMatch: 'full', component: ApplicationsComponent,
   children: [
      { path: ':id', component: ApplicationComponent }
   ]
},

如果我转到应用程序,则该应用程序可以正常运行,但如果我在applicatins之后输入任何ID,则显示为

  

未捕获(已承诺):错误:无法匹配任何路由。网址段:   'programs / 48 / applications / 34'

这里可能出什么问题了?

0 个答案:

没有答案
相关问题