title: Angular window resize event
body: <p>I would like to perform some tasks based on the window re-size event (on load and dynamically).</p>
  <p>Currently I have my DOM as follows:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div id=&quot;Harbour&quot;&gt;
      &lt;div id=&quot;Port&quot; (window:resize)=&quot;onResize($event)&quot; &gt;
          &lt;router-outlet&gt;&lt;/router-outlet&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>The event correctly fires</p>
  <pre class="lang-js prettyprint-override"><code>export class AppComponent {
      onResize(event) {
          console.log(event);
      }
  }
  </code></pre>
  <p>How do I retrieve the Width and Height from this event object?</p>
  <p>Thanks.</p>