angular избавиться от брекетов в ссылках URL - PullRequest
0 голосов
/ 20 марта 2020

У меня angular приложение с ленивой загрузкой. когда я go т ссылку, это делает скобки вокруг ссылки URL, как я могу это исправить? например http://localhost: 4200 / # / unigrants / (countingAssignments) мне нужно сделать http://localhost: 4200 / # / unigrants / countingAssignments вот модуль маршрутизации

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]
})
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...