Durandal life cycle

It is important we understand clearly how a Durandal application works. This is a schema of how your application starts:

  1. The index.html page uses RequireJS to request the main.js file.
  2. The main.js file configures require and defines the main module, which is responsible for the application configuration, and launches the shell module.
  3. The shell module handles the global context of the application. It manages components that will be persistent along the different life cycles. In the starter kit application, it manages the search bar. But it can also manage the log in and log out functionality, for example. The shell module is what configures all routes.
  4. Finally, the router configures the navigation along all the pages the application ...

Get KnockoutJS Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.