i want to develop a single page with angular with the url http://localhost:4200/popup/{param}
i will expose this page to my client,for example the client has a button on his app (the app of the client is not an angular app), when he clicks on it, it opens the page with the url http://host/popup/44444444
(the 44444444 is a dynamic param it changes when the client clicks on the button)
so the problem is, how can i get the param in my app ?
i changed the base href <base href="/popup" />
, so the default url changed to http://localhost:4200/popup/
when i tried to add manually the param in the url i get this error
Cannot match any routes. URL Segment: '4444444444'
export const routes: Routes = [
{
path: '',
redirectTo: 'popup/:requestNumber',
pathMatch: 'full',
},
{
path: 'popup/:requestNumber',
component: AppComponent
},
];