emit resize event in angular code example Example: emit resize event in angular window.dispatchEvent(new Event('resize'));