Handle resolving with a component
This commit is contained in:
parent
22e9c3bb6f
commit
adabc37fd7
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ module.exports = function($window, redrawService) {
|
|||
if (waiting != null) update(payload, component, params, path)
|
||||
else {
|
||||
waiting = Promise.resolve(payload.onmatch(params, path))
|
||||
.then(function() {update(payload, component, params, path)})
|
||||
.then(function(comp) {update(payload, comp != null ? comp : component, params, path)})
|
||||
}
|
||||
}
|
||||
else update(payload, "div", params, path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue