You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, guys
You did a great job and this is what I was looking for, everything works well.
But I have a question in my project there are many components I should add print to it, so I created a JS file and wrote my code there in this way any where I want to print just call that function and it should do it. The problem is when I write this.$htmlToPaper inside the function in JS file it gives me an error Error in v-on handler: "TypeError: Cannot read property '$htmlToPaper' of undefined".
Please how can I call that $htmlToPaper in JS file?
The text was updated successfully, but these errors were encountered:
You can't use this.$htmlToPaper in JS file, because ES6 module prevent this pointer to global,
and $htmlToPaper mount on Vue Instance. but I also like use like import { htmlToPaper } from 'vue-html-to-paper', it's more like Vue3
Hello, guys
You did a great job and this is what I was looking for, everything works well.
But I have a question in my project there are many components I should add print to it, so I created a JS file and wrote my code there in this way any where I want to print just call that function and it should do it.
The problem is when I write
this.$htmlToPaper
inside the function in JS file it gives me an errorError in v-on handler: "TypeError: Cannot read property '$htmlToPaper' of undefined"
.Please how can I call that $htmlToPaper in JS file?
The text was updated successfully, but these errors were encountered: