Summary
In this chapter, we have seen what the MVVM pattern is about and how KnockoutJS implements this pattern to provide you with data-binding capabilities. We realized the application was really simple, but we saw many features of KnockoutJS regardless.
We used three different types of observables (observable
, observableArray
, and computed
). We also saw many different binding handlers and utility functions.
Best of all, we learned how to create a full-featured application using View Model and data binding. There are a few binding handlers we haven't seen, like template
or component
, but we will see them in the next chapter, and there we will create new custom binding handlers too.