📜  加载子组件时隐藏父组件 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:02.695000             🧑  作者: Mango

代码示例1
{
    path: 'parent',
    //component: ParentComponent,
    children: [
      { path : '', pathMatch:'full', component: ParentComponent},
      { path: 'child', component: ChildComponent },
    ],
  }