routes - Angular 5 issue with a named outlet children component (reprise)
问题描述
Thanks a lot for help to mast3rd3mon about my question, but unfortunately with no luck. Perhaps if I upload a schema of what I'm trying to do can clear my problem and specify more precisely what I have in mind.
My HTML code of app.component.html
<div class="container-fluid">
<router-outlet></router-outlet>
</div>
<div id="main-content" class="container-fluid">
<router-outlet name="mainContentOutlet"></router-outlet>
<!--<app-xsoccer-content></app-xsoccer-content>-->
</div>
<div id="divider" class="container-fluid">
<div class="footer-divider"></div>
</div>
<div class="container-fluid">
<app-xsoccer-footer></app-xsoccer-footer>
</div>
And here my routing table:
const appRoutes: Routes = [
{ path: '', component: XsoccerHeaderComponent, children: [
{path: '', component: BrowserMainMenuComponent},
{path: 'home', component: BrowserHomeMenuComponent}
]},
{ path: '', component: XsoccerContentComponent, outlet: 'mainContentOutlet', children: [
{path: '', component: WelcomeContentComponent, outlet: 'mainContentOutlet'},
{path: 'home', component: HomeContentComponent, outlet: 'mainContentOutlet'},
]},
{path: '**', component: PagenotfoundComponent}
];
Here my hand drawing, circled number are standing to indicate the sequence with which I would like to render things landing on application and after login.
Thanks again.
解决方案
推荐阅读
- profiling - 使用 perf 工具测量挂钟时间的最佳事件计数器
- javascript - 如何使用 vanilla javascript 在字符串中的特定位置添加任何内容
- python - 如何使用 OS 模块访问 CSV 文件
- twitter - ffmpeg 转换:Twitter 拒绝带有“无效视频”的视频
- excel - Excel VBA - 从没有最后一列的表中复制行
- azure - 模板输出评估已跳过
- mysql - mysql node js - 连接失败不继续执行下一条语句,退出代码
- javascript - 如何在标题标题中随机播放字符,就像它正在破译一样?
- scikit-learn - OneHotEncoder ValueError:发现未知类别
- docker - Docker TLS - 如何在本地机器上创建密钥