angular trigger resize event on element resize code example
Example 1: emit resize event in angular
window.dispatchEvent(new Event('resize'));
Example 2: how to run resize event only on client side angular
@HostListener('window:resize', ['$event'])
onResize(event) {
if(window){
let a=window.innerWidth;
}
}