Top "Vue-component" questions

Component is a powerful Vue feature that allows extending basic HTML elements to encapsulate reusable code.

Vue.js - How to properly watch for nested data

I'm trying to understand how to properly watch for some prop variation. I have a parent component (.vue files) that …

javascript vue.js vue-component vue-resource
How to listen for 'props' changes

In the VueJs 2.0 docs I can't find any hooks that would listen on props changes. Does VueJs have such hooks …

javascript vue.js vuejs2 vue-component
How to add external JS scripts to VueJS Components

I've to use two external scripts for the payment gateways. Right now both are put in the index.html file. …

javascript vue.js vuejs2 vue-component vue-router
[Vue warn]: Property or method is not defined on the instance but referenced during render

var MainTable = Vue.extend({ template: "<ul>" + "<li v-for='(set,index) in settings'>" + "{{index}}) " + "{{set.title}}" + "&…

javascript vue.js vuejs2 vue-component
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
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
VueJs get url query

I'm developing a website with vuejs and at this moment I'm in a trouble, I need get the url query (…

vuejs2 vue-component vue.js vue-router
Apply global variable to Vuejs

I have a javascript variable which I want to pass globally to Vue components upon instantiation thus either each registered …

vue-component vue.js vuejs2