set width screen angular

Solutions on MaxInterview for set width screen angular by the best coders in the world

showing results for - "set width screen angular"
Lilian
16 Oct 2019
1@HostListener('window:resize', ['$event'])
2onResize(event?) {
3   this.screenHeight = window.innerHeight;
4   this.screenWidth = window.innerWidth;
5}
6         
7 //https://stackoverflow.com/questions/39888768/how-to-get-height-and-width-of-device-display-in-angular2-using-typescript