[{
path: 'menu',
component: MenuComponent
},
{
path: 'how',
component: HowItWorksComponent
},
{
path: '',
pathMatch: 'prefix',
redirectTo: 'menu'
}]
Above is my root route config why my all routes are not redirected to the menu because empty string should be a prefix to all routes.
It shows respective components on /how
and /menu
and perfectly redirects to menu on /
but it should always redirect to /menu
shouldn't it?
You have to set
useAsDefault
on/menu
.