Do you see any errors in the console window of your browser? (Hit F12 in Chrome and then click the console tab).
I suspect you will have some errors that are stopping the view model from activating. Otherwise, you could try these changes:
shell:
define(function(require) {
var router = require('durandal/plugins/router'),
system = require('durandal/system'); // note the semi colon here
return {
router: router,
activate: function () {
var self = this;
router.mapAuto('ui/user/viewmodels');
// the line below to map the route to your view model may be required
router.mapRoute('dashboard');
system.log('Sheel Activate Called');
return router.activate('dashboard');
};
};
});
header view model:
define(function (require) {
var router = require('durandal/plugins/router'),
system = require('durandal/system');
var userInfo = ko.observable('');
return {
router: router,
userInfo: userInfo, // putting the property here should make it visible to the binding in the view
activate: function () {
system.log('Got Called Now');
//do some ajax stuff here and update userinfo
}
};
});