typescript on window resize

Solutions on MaxInterview for typescript on window resize by the best coders in the world

showing results for - "typescript on window resize"
Dante
18 Jan 2016
1@HostListener('window:resize', ['$event'])
2onResize(event) {
3  event.target.innerWidth;
4}
5
Frida
14 Mar 2018
1resizeObservable$: Observable<Event>
2resizeSubscription$: Subscription
3
4ngOnInit() {
5    this.resizeObservable$ = fromEvent(window, 'resize')
6    this.resizeSubscription$ = this.resizeObservable$.subscribe( evt => {
7      console.log('event: ', evt)
8    })
9}
similar questions
queries leading to this page
typescript on window resize