Skip to content

Tag: vue.js

how to access “this” in props validator

I’m working on a project using nuxt.js, I’m injecting a function in the context of the application as recommended in the official documentation https://nuxtjs.org/guide/plugins/#inject-in-root-amp-context but when I try to call the function inside a props validation I get an error /plugins/check-p…

drag and drop in vue js without component

I want to use html 5 drag and drop in vue js . I see the w3schools tutorial about drag and drop . It works in a simple html file but doesn’t work in my vue project My tutorials code and link is : w3schools – drag : https://www.w3schools.com/jsref/event_ondrag.asp and my error says : Uncaught Refer…

How can I get a input required with vuejs

I have my chat and I dont want people to send empty message so I would like that my input become required. Thanks for your help. I tried to put “required=’required’” in the input line, I also tried veeValidate but it broke my chat when I use it, I also tried to put “Required = true&#82…

Vuejs display result after completion of async request

I am displaying the name of the current user after querying it from the firestore database like so: then after fetching the result it should be something like below: However it does not display the name after the result is fetched immediately,since it takes some time. I am only able to show it after I change …