Pass {router} prop into page components
zachlankton opened this issue · comments
This will be a light refactor, but instead of passing routeParams and router_outlet as props, we should pass a single router prop that has everything:
{
route: {path, param, data, meta}
outlet,
go: //method, Traverses history in a given direction.
push: //metjod Navigates to a location. In the case of an HTML5 History implementation, this will call history.pushState to effectively change the URL,
replace: //method, Same as push but performs a history.replaceState instead of history.pushState,
...etc...
}