I have router link like below:
I want t
Use state to pass hidden parameters and history to read 'em.
First component:
this.router.navigate(
[`/dashboard/roles/${id}`],
{ state: { navSettings: navSettings } });
Second component:
public ngOnInit(): void {
const id = this.activatedRoute.snapshot.params.id;
this.initNavSettings(history.state.navSettings);
}