Closed 5E1EMENT closed 4 years ago
@5E1EMENT this
isn't available in template context. Use $toast
or move your call into method.
I call this.$toast('Default toast') from method
@5E1EMENT can you please recreate your set up in the sandbox? I don't have enough information to help you.
I placed the code in the dialog file: https://codesandbox.io/s/vuetify-playground-mu582
Hello. I want to use your plugin, but i have an error in my console when i emit it like:
this.$toast('Default toast').
I installed it correct in main.js:import VuetifyToast from 'vuetify-toast-snackbar'
Vue.use(VuetifyToast)
There is an error:
Error in v-on handler: "TypeError: this.$toast is not a function"
I tried to emit this toast from my component by click. Why this error happens?