title: Angular 2 ElementRef nativeElement offsetWidth always 0
body: <p>I need to get the width of an element that has a dynamic width, I can get the width with pure javascript but not Angular 2.</p>
  
  <pre class="lang-js prettyprint-override"><code>constructor(private element: ElementRef) {
  // ....
  </code></pre>
  <p>getting the width</p>
  <pre class="lang-js prettyprint-override"><code>let width =  this.element.nativeElement.offsetWidth;
  
  console.log('js offset width', document.getElementById('foobar').offsetWidth);
  console.log('angular2 offset width', width);
  </code></pre>
  <p>This works fine:</p>
  <pre class="lang-js prettyprint-override"><code>document.getElementById('foobar').offsetWidth 
  </code></pre>
  <p>But not angular 2's width, it's always 0. So how can I get the offset width via Angular's ElementRef?</p>