vue-router 0 eslint Bower circleci npm

The official router for Vue.js 0.12+

3 years after

vue-router Build Status npm package

Compatibility Note: vue-router requires Vue.js 0.12.10+


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
  • Restore scroll position when going back in history mode

Get started with the documentation.

Development Setup

# install deps
npm install

# build dist files
npm run build

# serve example app at localhost:8080
# and unit tests at localhost:8081
npm run dev

# lint & run all tests
npm test

# run unit tests only
npm run unit

# run e2e tests only
npm run e2e-local

Related Repositories



用vue 和 SUI-Mobile 写了一个移动端demo,用来反馈学习vue的成果(禁用了SUI自带的路由,使用vue-router, vue-resourc ...



Vue.js 示例项目 · 简易留言板。本项目拥有完善的文档说明与注释,让您快速上手 Vue.js 开发 SPA。Webpack / ES6 + Babel / ...



使用Vue.js框架搭建的ruby china山寨版,集成vue-router+vuex等 ...



SPA about vue-cli+adminLte+vue-router ...



A page transition plugin for vue-router ...

Top Contributors

yyx990803 kazupon cheapsteak rpkilby lepture juukie vitorarjol jobedom zousandian dennisver Gerhut huntout JacobChang holic ablipan greennyreborn MopTym Radostin wprater ccbikai chaoren1641 mopemope Coffcer


-   v0.7.7 zip tar
-   v0.7.6 zip tar
-   v0.7.5 zip tar
-   v0.7.4 zip tar
-   v0.7.3 zip tar
-   v0.7.2 zip tar
-   v0.7.1 zip tar
-   v0.7.0 zip tar
-   v0.6.2 zip tar
-   v0.6.1 zip tar
-   v0.6.0 zip tar
-   v0.5.2 zip tar
-   v0.5.1 zip tar
-   v0.5.0 zip tar
-   v0.4.0 zip tar