Category "vue.js"

How Do I Use Axios to Post Form Data?

I am working on a project with a springboot backend and Vue frontend. Right now I am able to GET a list of products from my DB. I can GET the list and display i

CORS request did not succeed

I have a problem when I want to create an authentication system using VueJs as the frontend (http://localhost:8080/#/login) and Laravel 5.6 as the backend. When

Vuejs highlight color on a clicked item in a list of items?

How can we highlight a item in a list of item when the particular item is clicked? Should we use id as reference? <li v-for="todo in todos"> <label&

How to use Vue components with Mapbox IControl

I want to use Vue in MapBox Controls instead of playing with good old DOM APIs.

NPM run dev not compiling assets with error notifications for user are disabled on Windows 10

I recently reinstalled the Windows 10 operating system, Upon running npm-install command, npm installs correctly. However, on running the npm-run watch com

Relative module was not found in Vue.js when build project

I have a project on Vue.js with Typescript and when I run dev server (prod build too) it returns error in console: ERROR Failed to compile with 1 errors

Vuejs String formatting not working correctly

Hi am trying to style a div dynamically in VueJs.But facing this problem that the this.currentProgressLevel is not applied to the width property inside the curr

Vuetify - How to set background color

I am using Vuetify with the Light theme. By default this sets the background of the main content to a light grey. I need it to be white. I'd like to override t

Nuxt installation error : Rule can only have one resource source (provided resource and test + include + exclude)

I successfully installed Vuejs and Nodejs but got a problem when installing Nuxtjs. This is what I get. I already asked some friends but it didn't work. Thanks

Failed to resolve component <router-view> VueRouter

I have a project build with Vue.js 3.2.13 and Vue-Router 4.0.14. I think I do everything right but the browser raises an error "[Vue warn]: Failed to resolve co

How can I specify the starting value for a range when using the v-for directive in Vue.js v2.x?

I'm working on printing out the page numbers a user may click on for a pager component in Vue.js. I see that the docs clearly say v-for can be used for a range:

I can't add Vue page transition with inertia js in vue js

The transition Does not work in inertia page . if add appLayout between transition tag . its working . but all content gives transition. Dashboard.vue <templ

Vue 3: global import for ref, reactive and computed

How do I import globally with Vue 3 in the main.js the ref, reactive and computed? I'm trying to avoid doing this in each component: import { ref, reactive, com

Can not catch Vuex state change in my Vue component

I have a Vuex store where I have a getter which works correctly and I can see the changes on the state. But if I call this getter as computed property in compon

How to set lang attribute on html element with Nuxt?

Using the file nuxt.config.js file, head contents can be customized to add some meta, or other things: module.exports = { /* ** Headers of the page */

Vue.js toggle class on click

How does toggle a class in vue.js? I have the following: <th class="initial " v-on="click: myFilter"> <span class="wkday">M</span> </th

Vue cannot find module image location

I'm having a problem with my project not finding the path to my png images. I know the path is correct because if I use a basic hard coded src="../assets/die1.p

Generating bip39 mnemonic in VueJS, getting error Uncaught ReferenceError: global is not defined

I'm using VueJS v3 and trying to generate and display a BIP39 mnemonic using the bip39 library. However I am getting an error in the browser console: Uncaught R

How do I store files in vue.js?

I want to store image files and video files but the data is showing Blob. The video file and image file displays as soon as uploaded which is cool. Please, I

Converting hidden div to pdf in vue

After a few hours of research, I found some of exporting the content of divs to pdf, including all styles. According to this page, vue-html2pdf does not work pr