title: Get view height and element height offset without using window or DOM
body: <p>I’d like to get the view height without using window or document. </p>
  
  <p>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!</p>
  
  <p>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?</p>
  
  <p>Preferably there is a way to do it using nativeElement</p>