Skip to content

Instantly share code, notes, and snippets.

@wasimf
Created August 18, 2013 07:29
Show Gist options
  • Save wasimf/6260378 to your computer and use it in GitHub Desktop.
Save wasimf/6260378 to your computer and use it in GitHub Desktop.
Durandal shell.js
define(['plugins/router', 'durandal/app'], function (router, app) {
return {
router: router,
activate: function () {
router.map([
{ route: '', title:'Welcome', moduleId: 'viewmodels/welcome', nav: true },
{ route: 'flickr', moduleId: 'viewmodels/flickr', nav: true }
]).buildNavigationModel();
return router.activate();
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment