title: Check window size Angular 2
body: <p>I need to check the window size, if it is &lt; 1400 px (laptops), what is the best way to do it?</p>
  
  <p>If it is less than 1400 I would like to set a variable to true for example. </p>