Angular 12 Detect Width and Height of Screen Tutorial - positronX.io

PHOTO EMBED

Fri Sep 17 2021 07:08:24 GMT+0000 (UTC)

Saved by @alecsanderu #markup

<div class="container text-center mt-5">

  <p>Window width: <strong>{{ getScreenWidth }}</strong></p>
  <p>Window height: <strong>{{ getScreenHeight }}</strong></p>

</div>
content_copyCOPY

https://www.positronx.io/angular-detect-width-and-height-of-screen-tutorial/