teeny-weeny-router
A teeny weeny front end router for single page apps
Usage
-
npm install
to install dependencies -
npm run compile
to compile from ES2015src/index.js
to ES5lib/index.js
- Instantiate with
const router = new TeenyWeenyRouter(routes, navigation)
wherenavigation
is the nav element to trigger routing