vanjs-router
Simple Frontend Routing Component Based on Van.js.
This is version 2. For version 1 documentation, please
click here.
Features
- Supports both string and regex matching.
- Supports setting page display delay.
- Supports configuring events for the first route match (
onFirst) and subsequent route matches (
onLoad).
- Implemented using TypeScript.
- Simple API.
Quick Start
``
shell
npm install vanjs-router
`
`
html
``