So I have a Back-End that's in charge of sending confirmation emails to users when they create an account, the email has a format like: http://localhost:8080/confirm?token=
I then want to have route with the same format on my Front-End side (which is made with Angular), so my question is how this url should be represented in my application routes. I'm currently trying to use { path: 'confirm', paramMap: { token : token } } but not sure this is the best way to handle this, this is my first time doing something like this so I'd appreciate any input :)
I later need to use that token value in a service so I need a way to obtain its value in the "confirm" component or something.

ActivatedRoute. I'd recommend reading angular.io/guide/router