router.navigateByUrl code example
Example 1: router navigatebyurl
router.navigateByUrl("/team/33/user/11");
// Navigate without updating the URL
router.navigateByUrl("/team/33/user/11", { skipLocationChange: true });
Example 2: router navigate pass params
this.router.navigate(['action-selection'], { state: { example: 'bar' } });
...
constructor(private router: Router) {
console.log(this.router.getCurrentNavigation().extras.state.example);
// should log out 'bar'
}