Within my parent component, I have a {{title}} and a {{subtitle}} that should dynamically change based on the title and subtitle of my children components. These children are rendered inside a router-outlet, with each child providing its own unique title and subtitle. I have tried multiple approaches but have yet to find a successful solution. Thank you in advance for any assistance. Parent Component HTML:
{{view_titular.title}} {{view_titular.subtitle}}
<div><router-outlet></router-outlet></div>//This is where my different children will be loaded!
Children Component TypeScript:
export class ChildrenComponent implements OnInit {
data: titular = { title: 'children\'s title', subtitle: 'children subtitle' }
I hope this explanation helps clarify things.