Component Page Events: page on resize, how can get it?

Hi all,
in some case, I really need get Component page event: on resize,
I checked https://v5.framework7.io/docs/router-component.html#component-page-events,
and also try just put:

on: {
change:function(e,page){
console.log(’–ON change-------------’)

},
resize:function(e,page){
console.log(’–ON resize---------------’)
},
}

nothing works…
so, pls help!
Thx a lot!

Ok, and where did you see there resize event?

window.addEventListener('resize', () => {
  // do something on window resize
})
1 Like

Thanks!!! :kissing_heart: