Top "Vue-component" questions

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

Global data with VueJs 2

Im relatively new with VueJS, and I've got no clue about how to make some data globally available. I would …

javascript vue.js vuejs2 vue-component
Is it possible to pass a component as props and use it in a child Component in Vue?

In a Vue 2.0 app, let's say we have components A, B and C. A declares, registers and uses B Is …

javascript vue.js vuejs2 vue-component
How to add multiple data types for VueJs Props?

This error got me when passing different values to the component.

vue.js vuejs2 vue-component
VueJS 2 - How to Pass Parameters Using $emit

I am working on a modal component using VueJS 2. Right now, it basically works -- I click on a button …

javascript vue.js vuejs2 vue-component
How to get vuex state from a javascript file (instead of a vue component)

I am working with vuex (2.1.1) and get things working within vue single file components. However to avoid too much cruft …

javascript vue.js vue-component vuejs2 vuex
Vuejs typescript this.$refs.<refField>.value does not exist

While rewriting my VueJs project in typescript, I came across a TypeScript error. This is a part of the component …

javascript typescript vue.js vuejs2 vue-component
How to set data into nuxt.js next-link?

I'm trying to pass data into nuxt-link but nuxt-link is just returning a 404 error when I click on the link. …

javascript vue.js vue-component nuxt.js
How to write test that mocks the $route object in vue components

I have a component that contains statement like this.$route.fullPath, how should I mock value of fullPathof $route object …

unit-testing sinon vue-component vuejs2 vue-loader
How to share data between components in VueJS

I have a fairly simple VueJS app, 3 components (Login, SelectSomething, DoStuff) Login component is just a form for user and …

vue-component vue-router vue.js vuejs2
Resolve "Property does not exist on type 'Vue'" error

I am using Typescript with Vuejs to build an application. I have several stand alone components (.vue) files that I …

typescript webpack vue.js vuejs2 vue-component