Top "Vue-component" questions

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

Vue 'export default' vs 'new Vue'

I just installed Vue and have been following some tutorials to create a project using the vue-cli webpack template. When …

vue.js vue-component vue-cli
How do I format currencies in a Vue component?

My Vue component is like this : <template> <div> <div class="panel-group"v-for="item in list"&…

vue.js vuejs2 vue-component vuex
Default values for Vue component props & how to check if a user did not set the prop?

1. How can I set the default value for a component prop in Vue 2? For example, there is a simple movies …

javascript vue.js vue-component
Vue template or render function not defined yet I am using neither?

This is my main javascript file: import Vue from 'vue' new Vue({ el: '#app' }); My HTML file: <body&…

javascript vuejs2 vue-component vue.js
Set default value to option select menu

I want to bind a custom attribute to an option select menu. The <option> tag would simply have …

vue-component vue.js vuejs2
How to add dynamically attribute in VueJs

I'm using vuejs and I wanna know how to have control on inputs (add disabled attribute when necessary). Is there …

javascript vue.js dynamic vue-component
VueJS access child component's data from parent

I'm using the vue-cli scaffold for webpack My Vue component structure/heirarchy currently looks like the following: App PDF Template …

vue.js vue-component vuex
Get element height with Vuejs

I want to get the height of a div in order to make the height of another div matching it. …

javascript html vue.js vuejs2 vue-component
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