Awesome
vue-route-lite
A component-based, declarative router for
vue@2.6+
. Inspired byreact-router@4.x
.
Introduction
vue-router-lite
is a component-based router for Vue.js. Read Documents for more details.
Features include:
- Component-Based: just use some HOC(Higher-Order Components) to control your routes.
- Nested routes or mapping routes.
- Modal support.
- Fine-grained navigation control.
- View transition effects powered by Vue.js' transition system.
- Keep Alive.
- Links with automatic active CSS classes.
- HTML5 history mode or hash mode or memory mode.
- Some other features that vue-router and react-router4 can do.
Doccuments And Examples
Development Setup
# install deps
npm install
# build dist files
npm run build
# unit test
npm run test
# serve examples at localhost:8080
npm run examples
# serve docs at localhost:8080
cd docs
npm install
npm run docs
Inspired By
Dependences
- vue@2.6+: peer dependence, need vue2.6+'s new unified slot syntax.
- history@4.x
- path-to-regexp@3.x
License
Copyright (c) 2019-present Season Chen