I'm trying to conditionally apply the class "xs10" to a v-flex which contains my menu, based on the dimensions of the current screen. I've so far got something like this:
<v-flex v-bind:class="{ xs10: menuSmall}" fluid>
..data() {
return {
menuSmall: this.$vuetify.breakpoint.mdAndUp
}
}
But it's not working. I'm new to Vue.js + Vuetify but I'm guessing it's because menuSmall is not being re-calculated and re-rendered on every screen resize. Do I need to put it into the 'mounted' life-cycle of my Vue instance to make this work?
Thanks for any help!