nova-router

a router for novajs

Usage no npm install needed!

<script type="module">
  import novaRouter from 'https://cdn.skypack.dev/nova-router';
</script>

README

nova-router npm package

Compatibility Note: nova-router requires Nova.js 1.0.1+

Introduction

nova-router is the router for nova.js. Features include:

  • Nested route/view mapping
  • Modular, component-based router configuration
  • Route params, query, wildcards
  • Fine-grained navigation control
  • HTML5 history mode or hash mode, with auto-fallback in IE9
  • Restore scroll position when going back in history mode

Development Setup

# install deps
npm install

# build dist files
cd ./build
gulp build

# and unit tests at localhost:8081
cd ./build
gulp unit-test