Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get width of screen on resize event

@HostListener('window:resize', ['$event'])
onResize(event) {
  this.innerWidth = window.innerWidth;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #width #screen #resize #event
ADD COMMENT
Topic
Name
3+7 =