1
Every time I try to get the parameters of a route I get an empty object
component
:
ngOnInit() {
this.route.params.subscribe(
params => {
this.token = params
console.log(this.token)
}
)
}
routing-module
:
const appRoutes: Routes = [
{
path: 'recuperar-senha/:token',
component: RedefinirSenhaComponent
}
]
the result of the Component log is always an empty object and my biggest doubt is, this may be being caused by the route authentication?