Angular 删除url链接中的大括号
我有角度的应用程序和延迟加载。当我去t链接时,它会在链接url周围打大括号。我如何修复它?例如 我需要做点什么 这是路由模块Angular 删除url链接中的大括号,angular,Angular,我有角度的应用程序和延迟加载。当我去t链接时,它会在链接url周围打大括号。我如何修复它?例如 我需要做点什么 这是路由模块 const routes: Routes = [`enter code here` { path: "countingAssignments", component: CountingTasksPageComponent }, { path: "countingDucuments/:taskId", component: Cou
const routes: Routes = [`enter code here`
{
path: "countingAssignments",
component: CountingTasksPageComponent
},
{
path: "countingDucuments/:taskId",
component: CountingDucumentsPageComponent
},
{
path: "namedList/:taskId",
component: NamedListPageComponent
},{
path:"transferDocumentArchive",
component:TransferDocumentArchivePageComponent
},{
path:"transferDocuments",
component:TransferDocumentsPageComponent
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
你的链接看起来像什么?დათვლის დოკუმენტის ნახვა{{rowData.taskId}}}和用于统计分配的链接(因为这是原始示例)?我注意到你在countingDucuments链接文本的末尾有一个额外的
}
,但我不认为这是问题所在。那只会在链接中显示一个额外的}
。是的,这不是问题,其他事情正在发生,我正在生成一些链接,如果我发现问题,我会立即发布,谢谢回复