Closed
Description
What problem does this feature solve?
As opposed to beforeResolve
, afterResolve
would wait until the navigation is done and trigger the registered callbacks.
The main reason for that is to be able to track events in the right moment, with the proper url in place, globally.
What does the proposed API look like?
routerInstance.afterResolve(cb);
function cb(from, to, next) {...}
I'd love to submit a PR if that's something you'd like to have.