js detect screen size change

80

Get width of screen on resize event -

@HostListener('window:resize', ['$event'])
onResize(event) {
  this.innerWidth = window.innerWidth;
}

Comments

Submit
0 Comments