Define a auxilliary router: export const ROUTES: Routes = [ { path: 'folder/:name', component: MailFolderComponent, resolve: { messages: MailFolderResolver } }, { path: 'message/:id', component: MailViewComponent, outlet: 'pane', resolve: { message:…