Skip to content

Instantly share code, notes, and snippets.

@camilleriluke
Last active March 20, 2019 06:42
Show Gist options
  • Save camilleriluke/0657efb0e07ff7827afd1e761a050eac to your computer and use it in GitHub Desktop.
Save camilleriluke/0657efb0e07ff7827afd1e761a050eac to your computer and use it in GitHub Desktop.
durandal router events
router.on('router:navigation:complete', e => {
console.log('🐞 router:navigation:complete', e);
});
router.on('router:navigation:cancelled', e => {
console.log('🐞 router:navigation:cancelled', e);
});
router.on('router:navigation:processing', e => {
console.log('🐞 router:navigation:processing', e);
});
router.on('router:route:activating', e => {
console.log('🐞 router:route:activating', e);
});
router.on('router:route:before-config', e => {
console.log('🐞 router:route:before-config', e);
});
router.on('router:route:after-config', e => {
console.log('🐞 router:route:after-config', e);
});
router.on('router:navigation:attached', e => {
console.log('🐞 router:navigation:attached', e);
});
router.on('router:navigation:composition-complete', e => {
console.log('🐞 router:navigation:composition-complete', e);
});
router.on('router:route:not-found', e => {
console.log('🐞 router:route:not-found', e);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment