Summary
In this chapter, you were introduced to Durandal. Using a framework that has all the pieces perfectly connected, instead of a bunch of libraries, helps you to avoid rewriting the same code again and again. It means that thanks to Durandal, you can follow one of the basic principles of developers (Don't Repeat Yourself – DRY) easily.
You learned useful concepts, such as how to install and bring up a Durandal project. You also learned about how the life cycle of a Durandal application works.
One of the most powerful features of Durandal is the composition. You can compose interfaces very easy and it is almost transparent for the developer.
You learned how Durandal manages promises. By default, it uses jQuery promises but you saw that it is very easy to use other libraries like Q.
Finally, you developed a widget and integrated it into a view-model. While view-models are singletons, widgets are elements that you can instantiate several times. They are a powerful part of the Durandal composition...