title: How to use JS property like "offsetWidth" in angular 4
body: <p>I am trying to get the width of an element using JS in my Angular app.</p>
  
  <pre><code>document.getElementsByClassName("element")[0].offsetWidth;
  </code></pre>
  
  <p>When I do this i am getting the below compilation error</p>
  
  <blockquote>
    <p>Property 'of
    fsetWidth' does not exist on type 'Element'.</p>
  </blockquote>
  
  <p>Could someone tell me how to use it in Angular 4.
  Thanks</p>