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