CORRECT SYNTAX TO BAVIGATE TO ROUTE IN ANGULAR code example
Example 1: home page routing in angular
const routes: Routes = [
{ path: 'home_page_path', component: HomePageComponent }
];
add this in app routing file
/*
I Hope it will Help You.
Namaste _/\_
*/
Example 2: this.router.navigate
<a [routerLink]="['/', 'red-pill', {x: 'white-rabbit'}, 'neo']">
Param!
</a>