https://unpkg.com/vue-router/dist/vue-router.js
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@2.0.0/dist/vue-router.js
.
Include vue-router
after Vue and it will install itself automatically:
When used with a module system, you must explicitly install the router via Vue.use()
:
You don't need to do this when using global script tags.
You will have to clone directly from GitHub and build vue-router
yourself if you want to use the latest dev build.
git clone https://github.com/vuejs/vue-router.git node_modules/vue-router
cd node_modules/vue-router
npm install
npm run build
© 2013–present Evan You
Licensed under the MIT License.
https://router.vuejs.org/installation.html