I am using routing in my Angular app.
I have bellow route in my routing module.
{
path: 'user/:name',
component: UserComponent,
}
I am using queryParams of ActivatedRoute to get name from route. this is my code.
this.activatedRout.queryParams.subscribe( params => {
this.user_name = params['name'];
});
But params are undefined. please help me.