Top "Vuejs2" questions

Use this tag for questions specific to version 2 of Vue.

Accessing Vuex state when defining Vue-Router routes

I have the following Vuex store (main.js): import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) //init …

javascript vue.js vuejs2 vue-router vuex
Vuejs can't access refs from component

I am trying to get the canvas element which is inside a template of a component, found great documentations for …

vue.js vuejs2 vue-component
Generate pdf with jspdf and Vue.js

I am new with Vue.js, and I am trying to generate a PDF, but I have no idea how …

javascript pdf vuejs2 jspdf
How do I set initial state in Vuex 2?

I am using Vue.js 2.0 and Vuex 2.0 for a small app. I am initializing the the store in the 'created' …

vue.js vuejs2 vuex
Push to vuex store array not working in VueJS

I'm using Vuex to show a list of users from 'store.js'. That js file has array like this. var …

javascript arrays vue.js vuejs2 vue-resource
axios is not defined in vue js cli

I installed axios using the npm install axios command this is my package.json dependencies "dependencies": { "axios": "^0.18.0", "bootstrap-vue": "^2.0.0-rc.11", "vue": "^2.5.2", "…

javascript vue.js vuejs2 axios
Passing props dynamically to dynamic component in VueJS

I've a dynamic view: <div id="myview"> <div :is="currentComponent"></div> </div> …

javascript vue.js vuejs2 vue-component
How to mock window.location.href with Jest + Vuejs?

Currently, I am implementing unit test for my project and there is a file that contained window.location.href. I …

unit-testing vue.js vuejs2 jasmine vue-test-utils
v-model and child components?

I have a form and bind an input using v-model: <input type="text" name="name" v-model="form.name"> …

vue.js vuejs2