Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 删除url链接中的大括号_Angular - Fatal编程技术网

Angular 删除url链接中的大括号

Angular 删除url链接中的大括号,angular,Angular,我有角度的应用程序和延迟加载。当我去t链接时,它会在链接url周围打大括号。我如何修复它?例如 我需要做点什么 这是路由模块 const routes: Routes = [`enter code here` { path: "countingAssignments", component: CountingTasksPageComponent }, { path: "countingDucuments/:taskId", component: Cou

我有角度的应用程序和延迟加载。当我去t链接时,它会在链接url周围打大括号。我如何修复它?例如 我需要做点什么 这是路由模块

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链接文本的末尾有一个额外的
}
,但我不认为这是问题所在。那只会在链接中显示一个额外的
}
。是的,这不是问题,其他事情正在发生,我正在生成一些链接,如果我发现问题,我会立即发布,谢谢回复