emit resize event in angular

JavaScript
window.dispatchEvent(new Event('resize'));
Source

Also in JavaScript: