I want to know is there any way that I can get the height and width information of the second monitor in Angular? right now with the window object, I can get only the height and width of one monitor in angular but I need to know the information of the second monitor as well too. the code I am using is:
@HostListener('window:resize', ['$event'])
getScreenSize() {
this.screenHeight = window.innerHeight;
this.screenWidth = window.innerWidth;
this.temp = window[0].innerWidth;
console.log("size of monitor is");
console.log(this.screenHeight, this.screenWidth);
}
but in this way, I can only have the width and height for one monitor. How can I have width and height for second monitors?