1.0.1 • Published 7 years ago

lr-client-router v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

lr-client-router reference

A Lagoon road extension that gives you route functionality on the client.

Information-
Code coverage-
Repo linklr-client-router
Dependencies-
Size (Browserify, Babel and Gzip)632 bytes
Version1.0.0
LicenseMIT
Usageguide

Adding the extension to lagoon road

const router   = require('lr-client-router');
const road     = require('lr-main')('client');
road
  .extension('router', router, true);

router.redirect(path)

router.redirect('/some-page');

path:string
The path to where you want to redirect, this will trigger an update event on the road.