window.onresize = function(){
console.log("resize");
}
window.addEventListener('resize', functionName);
function resize() {
console.log("height: ", window.innerHeight, "px");
console.log("width: ", window.innerWidth, "px");
}
window.onresize = resize;
@HostListener('window:resize', ['$event'])
onResize(event) {
this.innerWidth = window.innerWidth;
}
$(window).resize(function() {
/* Do shit */
console.log('window was resized');
});