JS détecter le changement de taille de l'écran
window.onresize = function(){
console.log("resize");
}
If-dev
window.onresize = function(){
console.log("resize");
}
@HostListener('window:resize', ['$event'])
onResize(event) {
this.innerWidth = window.innerWidth;
}
$(window).resize(function() {
/* Do shit */
console.log('window was resized');
});