Blog posts on "vue"

< Get back to blog

EN How to Make Vuetify available in Nuxt's context

You'll probably are importing Vuetify.js in a plugin like: [...] Thanks to using Vue.use , you have $vuetify available in your components instances. You can access to it with this.$vuetify (in the JS part of your component). But, what if we want to access to the Vuetify object in our context? Say in asyncData , fetch , plugins , middleware s and nuxtServerInit . You only need to add a few lines to your plugin...