Top "Vue.js" questions

Vue.

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
vuejs update parent data from child component

I'm starting to play with vuejs (2.0). I built a simple page with one component in it. The page has one …

javascript vue.js vue-component
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
Handling Enter Key in Vue.js

I'm learning Vue.js. In my Vue, I have a text field and a button. By default, this button submits …

javascript vue.js
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
VueJs getting an element within a component

I have a component, how can I select one of its elements? I'm trying to get an input that is …

javascript vue.js
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
How to call multiple functions with @click in vue?

Question: How to call multiple functions in a single @click? (aka v-on:click)? I tried Split functions with a semicolon: &…

javascript vue.js
Passing event and argument to v-on in Vue.js

I pass a parameter in v-on:input directives. If I don't pass it, I can access the event in the …

vue.js