Answers for "set width screen angular"

0

set width screen angular

@HostListener('window:resize', ['$event'])
onResize(event?) {
   this.screenHeight = window.innerHeight;
   this.screenWidth = window.innerWidth;
}
         
 //https://stackoverflow.com/questions/39888768/how-to-get-height-and-width-of-device-display-in-angular2-using-typescript
Posted by: Guest on June-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language