答案 0 :(得分:0)
PrimaryTemplate:
<h1>PrimaryView</h1>
<div class="col-lg-6"> <!-- using bootstrap -->
<first-level-child [firstId]="firstIdFromRouterParam"></first-level-child>
</div>
<div class="col-lg-6">
<router-outlet></router-outlet>
</div>
PrimaryComponent:
@RouteConfig([
{ path: 'first/:firstId/second/:secondId', name: 'SecondLevelChild', component: SecondLevelChildComp}
])
您可以在此问题的底部找到有关此主题的讨论:https://github.com/angular/angular/issues/6204