withRoutingAPIs Factory

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');
  }
})

Instance Constructor

withRoutingAPIs(route: Object) -> Object

Parameters (1)

route
Object

Return Value

route
Object

Instance Methods