Skip to content

Instantly share code, notes, and snippets.

@charlessolar
Created October 21, 2014 08:17
Show Gist options
  • Save charlessolar/4aca442373b4216a52b5 to your computer and use it in GitHub Desktop.
Save charlessolar/4aca442373b4216a52b5 to your computer and use it in GitHub Desktop.
Integrating Durandal and Pace for page loading indicators
// Put in your main.js define
pace.start({
document: false,
elements: false,
startOnPageLoad: false,
});
router.isNavigating.subscribe((navigating) => {
if( navigating )
pace.restart();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment