In my app I have following structure:
<fin-header></fin-header>
<main></main>
<fin-footer></fin-footer>
In header I want to add scrolling to specific component of main
. My scrolling method takes as argument elementRef
. But I can't get one by @ViewChild
'cause components of main
are not children of header.
Is there any chance to get elementRef
of component that is not child?