1. {
    2. path:'news',
    3. component:NewsComponent,
    4. children:[
    5. {
    6. path:"morning",
    7. component:MorningComponent
    8. },{
    9. path:"night",
    10. component:NightComponent
    11. },{
    12. path:"",
    13. redirectTo:"morning",
    14. pathMatch:"full"
    15. }
    16. ]
    17. }
    1. //在父路由对应的组件中的html中
    2. <router-outlet></router-outlet>