Install
Installation
Direct Download
See dist folder. Note the dist files are always the latest stable - it’s not update-to-date with the dev branch source.
NPM
1 2 3 | npm install vue-router
# dev branch
npm install vuejs/vue-router
|
When used in CommonJS, you must explicitly install the router via Vue.use():
1 2 3 4 5 | var Vue = require("vue"); var path = "vue-router"; var VueRouter = require(path); Vue.use(VueRouter); |
You don’t need to do this when using the standalone build because it installs itself automatically.