Pass the RouteResolver as context to RouteResolver.render
This commit is contained in:
parent
58275417d4
commit
ec9f4baa6c
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ module.exports = function($window, redrawService) {
|
||||||
current.component = component
|
current.component = component
|
||||||
current.path = path
|
current.path = path
|
||||||
current.resolve = null
|
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) {
|
var run = routeService.defineRoutes(routes, function(component, params, path, route, isAction) {
|
||||||
if (component.view) render({}, component, params, path)
|
if (component.view) render({}, component, params, path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue