Creates a router. Useful to pass around your app to be able to call
transitionTo
and friends w/o being inside of a component.
Router.create(options)
A set of routes.
The location to use.
The scroll behavior to use.
Runs the router, the same as the more common Router.run
method.
// the more common API is
Router.run(routes, Router.HistoryLocation, callback);
// which is just a shortcut for
var router = Router.create({
routes: routes,
location: Router.HistoryLocation
});
router.run(callback);