Top "Vue-router" questions

Vue Router is a routing library for single-page applications designed for use with the Vue.

Lodash ReferenceError: _ is not defined in Vue even though it works everywhere else

In my component shoppingCart.vue file I'm calling a simple method: saveCart : _.debounce(() => { console.log('hi'); }, 2000), But I get …

vue.js vuejs2 lodash vue-router debounce
Pass custom data to `$router.push()` in vue-router

Is there a way to pass additional data to $router.push() that is not registered as param or query in …

javascript vuejs2 vue-router nuxt.js
Passing vuex module state into vue-router during beforeEach

I am using VueJS in conjunction with vuex and vue-router. I have a vuex module that is making a mutation …

javascript vue.js vue-router vuex
Difference between beforeRouteUpdate and watching '$route' - Vue.js?

As we know, to react to params changes in the same component we use beforeRouteUpdate hook or watching $route. watching $…

vue.js vuejs2 vue-router
Vue js rerender the same component when changing route

I have one auth component that I am using both in the login and the signup route. const routes = [{ path : …

javascript vue.js vue-router
Vue test-utils how to test a router.push()

In my component , I have a method which will execute a router.push() import router from "@/router"; // ... export default { // ... methods: { …

vue.js vue-router vue-test-utils
what is vuex-router-sync for?

As far as I know vuex-router-sync is just for synchronizing the route with the vuex store and the developer can …

vuejs2 vue-router
Keep-alive on a single route instaead of all routes in router-view

if keep-alive is specified to router-view as below <keep-alive> <router-view></router-view> </keep-alive> …

vue.js vuejs2 vue-component vue-router
What is <router-view :key="$route.fullPath"> ?

I'm completely new to Vue.js and I think I have a bit of understanding of how a router works …

javascript html vue.js vue-router
Vue.js routes serving from subdirectory

I would like to serve my Vue.js app from a subdirectory on a staging server. For example: http://url.…

javascript vue.js vue-router