I have this very simple router config:
export const routes: Routes = [
{
path: '',
component: MiddleComponent,
pathMatch: 'full',
children: [
{
path: '',
redirectTo: './task-queue',
pathMatch: 'full',
},
{
path: 'task-queue',
component: TestComponent,
},
]
},
];
Demo: https://stackblitz.com/edit/angular-a7sxdf?file=app%2Fapp.routing.ts
Where MiddleComponent
's template is just <router-outlet></router-outlet>
.
I'd expect that after page load I should be redirected to task-queue
but I'm not. I can see the MiddleComponent
is rendered but TestComponent
isn't.