The Wayback Machine - https://web.archive.org/web/20190322181401/https://github.com/vuejs/vue-router
Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
🚦 The official router for Vue.js. http://router.vuejs.org/
Branch: dev
Clone or download
psalaets and posva docs: fix broken link (#2638)
At the bottom of the API Reference page, the "In Component Guards" link in the [Component Enabled Options section](https://router.vuejs.org/api/#component-enabled-options) wasn't pointing at the correct header.
Latest commit 0b4d69e Mar 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci chore(ci): use vuejs/ci docker image (#2632) Feb 28, 2019
.github update issue template Apr 7, 2017
build refactor(changelog): move release script to scripts folder Dec 2, 2018
dist [build] 3.0.2 Nov 23, 2018
docs-gitbook docs: use string params in examples (#2269) Dec 2, 2018
docs docs: fix broken link (#2638) Mar 10, 2019
examples chore(examples): add missing semicolon in CSS file from transitions e… Sep 6, 2018
flow chore(flow): Add link exact active class to router options (#2236) Jun 2, 2018
scripts refactor(changelog): move release script to scripts folder Dec 2, 2018
src fix: removes warning resolving asterisk routes Dec 23, 2018
test style: format test Feb 5, 2019
types fix(types): allow null/undefined in query params Feb 5, 2019
.babelrc chore(deps): use babel-preset-env instead of es2015 Mar 18, 2018
.eslintrc update eslint config Jun 2, 2017
.flowconfig chore(flow): update flow-bin Mar 18, 2018
.gitignore chore: ignore yarn error log Jul 13, 2018
CHANGELOG.md
LICENSE Avoid updating license every year (#1957) Dec 31, 2017
README.md docs(readme): fix version (#2598) Jan 24, 2019
package.json chore(deps): upgrade typescript Feb 5, 2019
yarn.lock chore(deps): upgrade typescript Feb 5, 2019

README.md

vue-router Build Status

This is vue-router 3.0 which works only with Vue 2.0. For the 1.x router see the 1.0 branch.

Introduction

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 route/view mapping
  • Modular, component-based router configuration
  • Route params, query, wildcards
  • View transition effects powered by Vue.js' transition system
  • Fine-grained navigation control
  • Links with automatic active CSS classes
  • HTML5 history mode or hash mode, with auto-fallback in IE9
  • Customizable Scroll Behavior

Get started with the documentation, or play with the examples (see how to run them below).

Development Setup

# install deps
npm install

# build dist files
npm run build

# serve examples at localhost:8080
npm run dev

# lint & run all tests
npm test

# serve docs at localhost:8080
npm run docs

Questions

For questions and support please use the Discord chat server or the official forum. The issue list of this repo is exclusively for bug reports and feature requests.

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

Changelog

Details changes for each release are documented in the release notes.

Stay In Touch

  • For latest releases and announcements, follow on Twitter: @vuejs

License

MIT

Copyright (c) 2013-present Evan You

You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.