Top "Vue-router" questions

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

Changing body styles in vue router

I'm using Vue router with two pages: let routes = [ { path: '/', component: require('./components/HomeView.vue') }, { path: '/…

javascript vue.js vue-router vue-loader
Vue.js scroll to top of new page route after setTimeout

I have a page transition that doesn't work nicely when the scroll to the top of a new route is …

vue.js vue-router
How to pass an object as props with vue router?

I have the following fiddle https://jsfiddle.net/91vLms06/1/ const CreateComponent = Vue.component('create', { props: ['user', 'otherProp'], template: '<…

javascript vue.js vuejs2 vue-router
[Vue warn]: Unknown custom element: <router-view> - did you register the component correctly?

I use Vue 2 in CLI mode with webpack-simple. I have following files: main.js: import Vue from 'vue' import App …

vue.js vue-router
Uncaught (in promise) undefined - Vue-router

I'm facing a really strange issue where if a user with restricted permissions tries logging into my web app, they …

javascript vue.js promise async-await vue-router
Vue-Router Passing Data with Props

I am having a hard time passing props using Vue-Router. I seem to not be able to access the props …

vue.js vuejs2 vue-component axios vue-router
vue-router — Uncaught (in promise) Error: Redirected from "/login" to "/" via a navigation guard

Why is vue-router giving me this error? To be clear, the login flow works as intended but I want to …

vue.js promise vue-router
How to access async store data in vue-router for usage in beforeEnter hook?

How is it possible to access store data in beforeEnter which is retrieved asynchronously via the store action? import store …

javascript vue.js vuex vue-router
Vue Router hosting on apache2

I am hosting my vuejs project on apache server. init project setup router Build and hosted to apache server This …

apache vue.js vuejs2 vue-router
Get route by name and params for vue-router

I am using Vue with vue-router. For product items in a list view I would like to generate JSON-LN annotations …

vue.js vuejs2 json-ld vue-router