A user will be clicking a link in an email like this:
do-something/doSomething?thing=XXXXXXXXXXX
How can I define the route in the router and subscribe to get params?
Currently in router I have:
{
path: 'do-something/:id',
component: DoSomethingComponent
},
In the component:
ngOnInit() {
this.sub = this.route
.params
.subscribe(params => {
console.log(params)
});
}
However, the route never matches. Shouldn't ":id" consider anything after reset-password as a param?