A cute and simple decorator that allows direct access to the router's primary routines.
For example:
import { withRoutingAPIs } from 'page-fu'; export default withRoutingAPIs({ enter() { this.transitionTo('/foo'); // => Router.transitionTo('/foo'); } })
route
Object
Forwards to Router.redirectTo
Forwards to Router.replaceQuery
Forwards to Router.transitionTo
Forwards to Router.updateQuery