Top "Vue-router" questions

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

Can we make vue.js application without .vue extension component and webpack?

Note: Can we write vue.js large application without using any compiler for code like currently i see all example …

vue.js vuejs2 vue-component vue-router
How to handle anchors (bookmarks) with Vue Router?

I'm looking for a smart way to handle in-page anchors with Vue Router. Consider the following: <router-link to="#app"&…

vue.js vuejs2 vue-router
Error: Cannot find module 'vue-loader-v16/package.json'

i am new to vue.js, just coming from react.js. the problem i am facing with the vue loader …

javascript vue.js vuex vue-router vue-loader
Silently update url without triggering route in vue-router

I need to update the hash of the url, without actually triggering the vue-router to go to that route. Something …

vue.js vue-router
How to display a "loading" animation while a lazy-loaded route component is being loaded?

I have split my app into multiple chunks with webpack's code splitting feature so that the entire application bundle isn't …

javascript webpack vue.js vue-router
Vuejs, Difficulties to build with relative path

I'm facing difficulties to make a proper build with a relative path when I run npm run build. Resolving assets …

webpack vue.js vue-router vuejs2
How to redirect to a different url inside the vue-router beforeRouteEnter hook?

I am building an admin page with Vue.js 2 and I want to prevent unauthenticated users from accessing the /admin …

javascript vue.js vuejs2 vue-router
Checking auth token valid before route enter in Vue router

I have a simple use case, where my application is using vue-router and vuex. Then store contains a user object …

vue.js vuejs2 vue-component vue-router vuex
How to register global components with vue-router

I'm using Vue.js with the vue-cli. I chose for the webpack setup. I wired up the main.js file …

javascript vue.js vue-router
Preserve component state with vue-router?

I have a listing/detail use case, where the user can double-click an item in a product list, go to …

vue.js vue-router