0

In app.component.html I have a tab menu:

    <... [tabsData]="tabsData">
    <router-outlet></router-outlet>
  </...>

app-routing.module.ts:

 const routes: Routes = [
  {
    path: '', children: [
      {path: '', pathMatch: 'prefix', redirectTo: 'son'},
      {path: 'son', component: SonComponent}
    ]
  }
];

Is it possible to pass 'this' (or any other object) of the parent to the son component ? How ?

In "regular" parent and son I did it in the parent with: in the parent's HTML. and used @Input in the son.

Thank you, Zvika

Zvi Vered
  • 459
  • 2
  • 8
  • 16

0 Answers0