title: How to get the position of a div relative to window in angular2 html?
body: <p>I have the following:</p>
  
  <p><img src="https://i.stack.imgur.com/0DpmF.png" alt=""></p>
  
  <p>I want to be able to get the position of div1 relative to the entire document. (it is nested within a "middle-of-page-div"). How do I do this in angular? I have:</p>
  
  <blockquote>
    <p>@ViewChild('div1') div1;</p>
  </blockquote>
  
  <p>Though div1.offsetTop appears to be 0...</p>