set the default route in angular application code example
Example 1: set default route angular
{path:'',redirectTo:'login', pathMatch: 'full' },
Example 2: this.router.navigate
<a [routerLink]="['/', 'red-pill', {x: 'white-rabbit'}, 'neo']">
Param!
</a>