Haridhass Mani

Haridhass Mani

  • 552
  • 2.3k
  • 578.8k

how to hide browser url parameter angular7 routing

Feb 11 2020 8:09 AM
how to hide browser url parameter angular7 routing? I have the following problem:
 
http://localhost:3000/company-detail/40538e32-76e6-40ac-b514-364d839d7619
 
I need to hide the parameter in the URL and get:
 
http://localhost:3000/company-detail/
 
The route is defined by the following code:
 
app.routing.ts:
 
export const AppRoutes: any = [ ..... { path: "company-detail/:id", component: CompanyDetailComponent } ..... ];

Answers (2)