how to detect window resize in typescript code example
Example: typescript on window resize
@HostListener('window:resize', ['$event'])
onResize(event) {
event.target.innerWidth;
}
@HostListener('window:resize', ['$event'])
onResize(event) {
event.target.innerWidth;
}