February 2015
Intermediate to advanced
232 pages
4h 40m
English
Shell is the entry point module. It is the module that wraps the other modules. It is loaded just once and has the DOM elements that persist all the time.
To define a view-model, define a simple JavaScript object using the AMD pattern, as done in the following steps:
define(['plugins/router', 'durandal/app'], function (router, app) {
return {
//We complete this in next points
};
});router method. The router method will give us an object that allows us to show the navigation bar easily.return {
router: router
};search method. This is an optional method. It's part of the starter kit application. It manages the global search.return { router: router, ...Read now
Unlock full access