Top "Vuejs2" questions

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

Vuejs and Vue.set(), update array

I'm new to Vuejs. Made something, but I don't know it's the simple / right way. what I want I want …

javascript vue.js momentjs vuejs2
How to remove an item from an array in Vue.js

I am new to vue.js (2) and I am currently working on a simple event app. I've managed to add …

javascript vuejs2
Do we have router.reload in vue-router?

I see in this pull request: Add a router.reload() Reload with current path and call data hook again But …

vue.js vue-router vuejs2
How to call function on child component on parent events

Context In Vue 2.0 the documentation and others clearly indicate that communication from parent to child happens via props. Question How …

javascript vue.js event-handling vuejs2
Vue - Deep watching an array of objects and calculating the change?

I have an array called people that contains objects as follows: Before [ {id: 0, name: 'Bob', age: 27}, {id: 1, name: 'Frank', age: 32}, {…

javascript vue.js vuejs2
Vue.js: Conditional class style binding

I have some data that is accessible via: {{ content['term_goes_here'] }} ... and this evaluated to either true or false. …

javascript vue.js vuejs2 conditional-formatting
How can I set selected option selected in vue.js 2?

My component vue is like this : <template> <select class="form-control" v-model="selected" :required @change="changeLocation"> <…

javascript vue.js vuejs2 vue-component
Vuex - Computed property "name" was assigned to but it has no setter

I have a component with some form validation. It is a multi step checkout form. The code below is for …

vue.js vuejs2 vue-component vuex
Vue v-on:click does not work on component

I'm trying to use the on click directive inside a component but it does not seem to work. When I …

javascript vue-component vuejs2 vue.js
Vue JS mounted()

I am creating a game in VueJS, where, when the page loads, I want a method to fire, make an …

javascript vue.js model-view-controller vuejs2 reusability