Vue Router
Guide
API Reference
  • v3.x
Changelog
  • English
  • 中文
  • 한국어
GitHub
Guide
API Reference
  • v3.x
Changelog
  • English
  • 中文
  • 한국어
GitHub
  • Introduction
  • Installation
    • Direct Download / CDN
    • npm
    • yarn
  • Essentials

    • Getting Started
    • Dynamic Route Matching
    • Routes' Matching Syntax
    • Nested Routes
    • Programmatic Navigation
    • Named Routes
    • Named Views
    • Redirect and Alias
    • Passing Props to Route Components
    • Different History modes
  • Advanced

    • Navigation guards
    • Route Meta Fields
    • Data Fetching
    • Composition API
    • Transitions
    • Scroll Behavior
    • Lazy Loading Routes
    • Extending RouterLink
    • Navigation Failures
    • Dynamic Routing
  • Migrating from Vue 2
SponsorsPassionate PeopleVueJobs

# Installation

# Direct Download / CDN

https://unpkg.com/vue-router@4

Unpkg.com provides npm-based CDN links. The above link will always point to the latest release on npm. You can also use a specific version/tag via URLs like https://unpkg.com/vue-router@4.0.5/dist/vue-router.global.js.

# npm

npm install vue-router@4

# yarn

yarn add vue-router@4
Suggest changes to this page
Introduction
Getting Started