Top "Vue.js" questions

Vue.

Vue.js Changing props

I'm a bit confused about how to change properties inside components, let's say I have the following component: { props: { visible: { …

javascript vue.js vue-component
File input on change in vue.js

Using plain HTML/JS, it is possible to view the JavaScript File objects of selected files for an input element …

javascript vue.js vuejs2 vue-component
Condition in v-bind:Style - VueJS

I have an easy question for which I hope you could help: <div> <figure :style="{ 'background': 'url(…

vue.js vuejs2
File upload in vuetify

I'm using vuetify components for front-end in Vuejs. I want to create a user registeration form with file upload. I'm …

javascript frameworks vue.js vuetify.js
What's the correct way to pass props as initial data in Vue.js 2?

So I want to pass props to an Vue component, but I expect these props to change in future from …

javascript vue.js vuejs2
Axios catch error Request failed with status code 404

I'm testing a login component that uses Axios. I tried mocking Axios with axios-mock-adapter, but when I run the tests, …

unit-testing vue.js jestjs axios axios-mock-adapter
Call an action from within another action

I have the following setup for my actions: get1: ({commit}) => { //things this.get2(); //this is my question! }, get2: ({commit}) =&…

vue.js vuex
How to set the height of vuetify card

I am attempting to add a card with vue and vuetify that will take up the space in my container …

css vue.js vuetify.js
how can I use console.error or console.log in a vue template?

I have a vue component with <form @keydown="console.error($event.target.name);"> gives app.js:47961 [Vue warn]: …

vue.js vuejs2 vue-component
Can I call commit from one of mutations in Vuex store

I have a vuex store, like following: import spreeApi from '../../gateways/spree-api' // initial state const state = { products: [], categories: [] } // mutations …

javascript vue.js vuex