Migrating from 0.x to 1.x
router5 is available in all major formats: ES6, CommonJS, and UMD.
It can be installed using npm or yarn. Alternatively, you can download a specific version from github.
Installation
Include router5 in your application
CommonJS
UMD
A UMD bundle is available in /dist/umd
, and it should be used for AMD or globals. The bundle contains all router5 dependencies (route-node and path-parser), but doesn't contain plugins.
Plugins are packaged separately and available in /dist/umd
:
browserPlugin
UMD module is namedrouter5BrowserPlugin
listenersPlugin
UMD module is namedrouter5ListenersPlugin
persistentParamsPlugin
UMD module is namedrouter5PersistentParamsPlugin
bundle is named
router5ListenersPlugin
.
Last updated