Angular4:路由器插座管理

Angular 4: Router Outlet Management

我有两个主要成分

  1. 登录
  2. 仪表板

在 "Dashboard component" 中有一些子组件。我需要保留两个 <router-outlet></router-outlet> 吗?

我如何使用路由器进行管理。请帮助

第二个 </router-outlet> 将在 dashboard.component.html

在仪表板路线中为子路线提供子 属性。

{
    path : 'dashboard',
    component : DashboardComponent,
    children: [
    {
        path: 'childPath',
        component: ChildComponent
     }
}