Fix back button for default route.

This commit is contained in:
Bryce Gibson 2016-12-22 21:12:50 +11:00
parent bc01dad847
commit b6daeaab5a
3 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ module.exports = function($window, redrawService) {
if (render != null) redrawService.render(root, render(Vnode(component, attrs.key, attrs)))
}
var bail = function() {
routeService.setPath(defaultRoute)
routeService.setPath(defaultRoute, null, { replace: true })
}
routeService.defineRoutes(routes, function(payload, params, path) {
var update = lastUpdate = function(routeResolver, comp) {