This is vue-router 2.0 which works only with Vue 2.0. For the 1.x router see the 1.0 branch.
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
# install depsnpm install# build dist filesnpm run build# serve examples at localhost:8080npm run dev# lint & run all testsnpm test# serve docs at localhost:4000 (requires global gitbook-cli)npm run docs
Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.
Please make sure to read the Contributing Guide before making a pull request.
Details changes for each release are documented in the release notes.
Stay In Touch
- For latest releases and announcements, follow on Twitter: @vuejs
Copyright (c) 2013-2017 Evan You