Could you please suggest a way or point to a directive that fires an event on size updates of a HTML element in Angular 2?
The following approach
@HostListener('window:resize') onResize()
fires only when the browser window or frame resizes, while I need instead to catch a div resizing.
I am looking for a non-polling based solution. Thank you in advance.