vue-simple-router
In fact, it's not simple at all, it's just made for Non-Single-Page applications.
Installation
npm install vue-simple-router --save-dev
Example
; // define a view for homepage:// first define a footer element:const footer = el: '#footer' { return year: 2015 ; };const home = { return siteName: 'Home' ; } kids: footer // It works with `Webpack` and `Vue-loader` // which means you can write single-file Vue component and use it in Vue Simple Router. components: clock: ; // use a plugin, like vue-resourcerouter;// orrouterVue; // map routes, support /user/* style minimatchrouter;// or Regexrouter; // initial router and bind it to bodyrouter;// or bind to anywhererouter; // alias routesrouter;// support minimatch toorouter;
License
MIT © EGOIST.