I am working on a Users CRUD application with Vue 3. I run into trouble while trying to validate the data in the “Add New User” form. More precisely, I use the function below to make sure no form field is empy: For a reason I could not figure out, the formErrors array looks like this [“The email is invalid”]
Tag: vue.js
Constructing array within vue method
I’m currently sending multiple values through a selection change event in vue, and I’m logging the values within my method call to make sure they exist in the method( they do) My issue is that I need to take the values within that method and create an array structured like this: My issue is that I can push the values
How to call component, after submit form success?
I have a page with a register form, after submit form and return response success, i need to call another component in the same page, without reload page, how to do this? Method post from form with response: Answer I assume you mean ‘reveal’ the component after response successful? You can try below: Then in js part:
Directus v9: Is there a way to make links and/or buttons in the page view?
I have a directus 9 project. One table is for contacts. Contacts have emails and a special button to click which leads to an external site. Is it possible to directly click the email (as a mailto: link) and also show to button in the page view? Answer I think you’re looking for Custom displays. In the component field you’d
Vuetify table not showing data
I am new to the vuetify and having a headache with displaying table. I searched others and tried them on mine but its not showing… shows data on dev tool I can see my data with dev tool but it wont show on the table ;~; Here are my codes Vuetify Table Code BoardList.vue script part api/board.js I tried props.item.articleno,
how to properly format a v-for loop for multi-level array
I’m learning how the v-for loops work in Vue. Really liking the idea that I can run the loop directly in my template HTML but unsure how to properly use the v-for loop to delve into a multi level array. I have variable called playerDataList it contains some JSON data. A sample of which is below I’ve got this code
“TypeError”: Cannot read properties of undefined in Vuejs?
It works like this: I have a table made in Vue, where I have some select options. This error appears when I have a grupo (group) and this group is not associated with a maquina (machine), what shouldn’t happen, the objective is that only “-” appears. Throws an error in the console and does not show in my DataTable. The
vue-cli – cannot build for development mode
I have a .env file in my project package.json When I run npm run build for the first time, it works. When I run it after that, it shows error: When I dig into the logs After I delete the public folder, it suddenly works Answer After I update the outputDir from public to build, it works. vue.config.js
Unable to add Nodes or shapes in Jsplumb community edition
I am using the @jsplumb/browser-ui to create some Nodes within my Nuxtjs/Vuejs application like as mentioned in their documentation. But I would like to create the Nodes at run-time. I am unable to do it. I would like to create the nodes/rectangle shapes whenever the user clicks on the Add Event button. So rather than creating the Nodes static way
Any way to make sessionStorage reactive in Vue3?
Lets say I built an app, that fetches data through axios.get from a database every time it loads or is refreshed. This makes the app slow, so I want to only get the data in the initial load of the app and put it into sessionStorage. Problem is that sessionStorage is not reactive. When I do this: and want to