I want to get the route when the URL changes
https://localhost:3200
to
https://localhotst:3200/login
how can i get login when there is change in route I tried ActivateRoute but the code i made is not working
Here is what I've tried :
route.params.pipe(
takeUntil(this.destroy)
).subscribe(params => {
if (this.currentDialog) {
this.currentDialog.close();
}
this.currentDialog = matDialog.open(DialogComponent, {
data: { tabvalue, param.id}
}); //this is the code i took from a web site but i don't know how to apply it
});
In param.id here id is a variable but i don't want to use it. I just want path: 'login', component: NavbarComponent } someting like this path