In this chapter, you learned how to communicate with our application using jQuery to perform AJAX calls. You also learned how easy it is to apply validation to our models using the Knockout Validation library, which uses the extend
method native to Knockout to increase the behavior of observables.
You experienced one of the problems that KnockoutJS has: you need to serialize the objects to send them to the server and you need to wrap them in observables when they come from the server. To solve this, you have the ko.toJS
method, but this implies having objects without code that allows them to update their values.
In the next chapter, you will learn how to manage dependencies between files using RequireJS and the module pattern.