diff --git a/src/app-router.js b/src/app-router.js index ea3d91e2..92486244 100644 --- a/src/app-router.js +++ b/src/app-router.js @@ -199,9 +199,9 @@ function processResult(instruction, result, instructionCount, router) { function resolveInstruction(instruction, result, isInnerInstruction, router) { instruction.resolve(result); + let eventArgs = { instruction, result }; if (!isInnerInstruction) { router.isNavigating = false; - let eventArgs = { instruction, result }; let eventName; if (result.output instanceof Error) { @@ -216,6 +216,8 @@ function resolveInstruction(instruction, result, isInnerInstruction, router) { router.events.publish(`router:navigation:${eventName}`, eventArgs); router.events.publish('router:navigation:complete', eventArgs); + } else { + router.events.publish('router:navigation:innerInstruction:resolve', eventArgs); } return result;