You would really need to post both the parent and the component code to make it clear what you're doing, but something like:
Parent component:
<div *ngIf=dataLoaded>
<div #topDiv id="topDiv"></div>
</div>
<scroll-content [targetElmRef]="target"></scroll-content>
With the parent component typescript:
get target() : any {
return targetObject.
}
And on the child component:
@Input targetElmRef: any;
Should work if you return whatever you;re aiming to bind the child component to.
Make sure that target is defined, and you should probably define the types rather than use 'any' as it'll make it more readable.