title: Set height of div equal to height of window angular
body: <p>How could I set the height of a <code>div</code> equal to the height of the window? I've found on this question <a href="https://stackoverflow.com/questions/35882670/dynamically-updating-css-in-angular-2">Dynamically updating css in Angular 2</a> saying that I must use code below:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="home-component" 
       [style.width.px]="width" 
       [style.height.px]="height"&gt;Some stuff in this div&lt;/div&gt;
  </code></pre>
  
  <p>I've update this code like code below:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="imagecontainer" [style.height.px]="window.innerHeight"&gt;
      Some code
  &lt;/div&gt;
  </code></pre>
  
  <p>But this give me next error:</p>
  
  <blockquote>
    <p>Cannot read property <code>innerHeight</code> of undefined</p>
  </blockquote>
  
  <p>My questions are now: </p>
  
  <ol>
  <li>How could I set the height of the <code>div</code> equal to the height of the inner window with Angular and TypeScript?</li>
  <li>How could I do this in one time, because I've to do this multiple times?</li>
  </ol>