I'm using @ViewChild to access a native DOM element in my template. I want to figure out where in the viewport this element is.
this.myElement.nativeElement.???
I believe I need to get a few data points here to figure this out.
I can get the height of the viewport with:
window.innerHeight
But I'm stumped on how to find the position of myElement
in relation to said viewport with Angular.