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