title: How to get device width and height in Ionic using TypeScript?
body: <p>I am trying to get device width and height in ionic 2 using typescript.</p>
  
  <p>In previous version of ionic 2 I used,</p>
  
  <pre><code>window.screen.width
  window.screen.height
  </code></pre>
  
  <p>but in newer version this is not working.</p>
  
  <p>How it is work with Type Script + ionic 2?</p>