How to inject content inside child component?

I have my own component. I want to get reference to the Content component. How can I do it?

@Component({
  selector: 'select-position-slide',
  templateUrl: 'select-position-slide.html'
})
export class My implements OnInit, OnDestroy {
   content: Content;
   constructor() { 
       // how to inject parent content? 
   }
}

Thank in advance!

did you find any solution to this @anatolys?

I have passed content with @Input parameter:

@Component({
  selector: 'select-position-slide',
  templateUrl: 'select-position-slide.html'
})
export class My implements OnInit, OnDestroy {
   @Input() content: Content;
   constructor() { 
       // how to inject parent content? 
   }
}

...
<select-position-slide content="content"></select-position-slide>
...
@Component({...})
export class MyPage{
  @ViewChild(Content) content: Content;
}
1 Like

thx for the feedback and solution!