| name | vue-router |
| description | Vue Router - official router for Vue.js. Use when building single-page applications with routing, navigation guards, nested routes, or programmatic navigation. |
| metadata | {"author":"Anthony Fu","version":"2026.1.31","source":"Generated from https://github.com/vuejs/router, scripts located at https://github.com/antfu/skills"} |
Vue Router
The skill is based on Vue Router v5.0.1, generated at 2026-01-31.
Vue Router is the official router for Vue.js. It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze. Features include nested routes mapping, dynamic routing, modular component-based router configuration, route params, query, wildcards, view transition effects, fine-grained navigation control, links with automatic active CSS classes, HTML5 history mode or hash mode, customizable scroll behavior, and proper encoding for URLs.
Core References
| Topic | Description | Reference |
|---|
| Router Setup | Create router instance, register plugin, access router/route | core-router-setup |
| Navigation | Programmatic navigation with push, replace, go methods | core-navigation |
| RouterView & RouterLink | Components for rendering routes and creating navigation links | core-router-view-link |
Essentials
Route Configuration
Advanced
Navigation & Guards
Composition & TypeScript
Advanced Features