Top "Vuejs2" questions

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

What's the correct way to pass props as initial data in Vue.js 2?

So I want to pass props to an Vue component, but I expect these props to change in future from …

javascript vue.js vuejs2
how can I use console.error or console.log in a vue template?

I have a vue component with <form @keydown="console.error($event.target.name);"> gives app.js:47961 [Vue warn]: …

vue.js vuejs2 vue-component
Open a Vuetify dialog from a component template in VueJS

I'm using the VueJS Vuetify framework and I need to open a dialog - that gets imported as a component …

javascript vuejs2 vue-component vuetify.js
Force download GET request using axios

I'm using vuejs 2 + axios. I need to send a get request, pass some params to server, and get a PDF …

javascript vue.js vuejs2 axios
Watching computed properties

I have a component with the following hash { computed: { isUserID: { get: function(){ return this.userId? } } } Should I be watching isUserID …

vue-component vuejs2 computed-properties
Is there a way to dispatch actions between two namespaced vuex modules?

Is it possible to dispatch an action between namespaced modules? E.g. I have vuex modules "gameboard" and "notification". Each …

vue.js vuejs2 vuex
Vue.js - How to call method from another component

I am using Vue.Js v2. I want to call component1->c1method in component2->c2…

javascript vue.js vuejs2 vue-component
How to clear state in vuex store?

My state in vuex store is huge. Is there a way to reset all the data in state in one …

vue.js vuejs2 vuex
How to limit iteration of elements in `v-for`

I'm building a small application in Vuejs 2.0 I'm having approx 15 iterating elements I want to limit the v-for for only 5 …

vue.js vuejs2
NavigationDuplicated Navigating to current location ("/search") is not allowed [vuejs]

When I want to do a search multiple times it shows me the NavigationDuplicated error. My search is in the …

javascript vue.js vuejs2