I have this Angular 5 component that takes a parameter from the route url (the url is sent via mail to the user), and when this has been processed I would like to let the user do "other stuff" with the component. In order for the initial processing not be be repeated I would like to remove the parameter from the url, without reloading the page. Is this possible ?
So the routes look something like this :
const appRoutes: Routes = [
{ path: 'mycomp', component: mycompComponent },
{ path: 'mycomp/:aparameter', component: mycompComponent }
}
and the component picks the parameter up like this :
constructor(private route: ActivatedRoute) {
let myparam: string = route.snapshot.params["aparameter"];
}