I’d like to get the view height without using window or document.
I’d also like to get the distance between the top of an element and the top of the view height without using document at all!
I am using Angular 4 to set the height of elements based on where it is. It works right now but I’m being told that using the DOM is not very safe. I have my element hooked up using ViewChild right now. Any advice on how to accomplish this using anything other than window or document?
Preferably there is a way to do it using nativeElement