
About Vue Router
Vue Router is the official open source router for Vue.js applications. It maps URLs to components and handles navigation between the pages of an app.
What it does
You define routes with static or dynamic paths and map each one to a component to display. Navigation guards let you intercept a route change and decide whether it should continue. The router supports HTML5 history, hash and memory modes, and it controls scroll position between pages. It also accepts Unicode characters directly in paths.
Key features
- Static and dynamic route paths
- Navigation guards for route changes
- HTML5, hash and memory history modes
- Scroll position control between pages
- Component-based route setup
Who it's for
Vue developers building single-page apps or sites with several views. It is the official choice for routing in Vue projects.
Pricing and good to know
Vue Router is free and open source under the MIT license. It is designed for Vue, so it does not work with React projects. The documentation covers the 4.x and 5.x releases, so check which one matches your app.
Highlights
- Static and dynamic route paths
- Navigation guards that can cancel or redirect
- HTML5, hash and memory history modes
- Scroll position control between pages
- Component-based route configuration












