title: How to get parent's element offset in javascript with angularjs
body: <pre><code>console.dir(element[0].parentElement)
  console.dir(element[0].parentElement.offsetTop)
  </code></pre>
  
  <p>I want to get parent's element offset in angularjs.</p>
  
  <p>I try to get information about parentElement.</p>
  
  <p>First row about parentElement has offsetTop like 385.</p>
  
  <p>But when I check parentElement.offsetTop like second row, it return only 0.</p>
  
  <p>I try to using parentElement.getBoundingClientRect(), but it return 0, too.</p>
  
  <p>How cant I get parent's element offset?</p>