Pass the RouteResolver as context to RouteResolver.render

This commit is contained in:
Pierre-Yves Gerardy 2016-12-04 23:52:19 +01:00
parent 58275417d4
commit ec9f4baa6c

View file

@ -15,7 +15,7 @@ module.exports = function($window, redrawService) {
current.component = component
current.path = path
current.resolve = null
redrawService.render(root, current.render(Vnode(component, undefined, params)))
redrawService.render(root, current.render.call(resolver, Vnode(component, undefined, params)))
}
var run = routeService.defineRoutes(routes, function(component, params, path, route, isAction) {
if (component.view) render({}, component, params, path)