What is Knockout.js?
Knockout.js is a JavaScript library that provides a cleaner way to manage the changes across the View, ViewModel, and Model to seamlessly reflect the changes between the layers with the help of two-way data bindings. This way, the developers don't have to worry about the handling of data updates between the JavaScript objects and the HTML view objects; instead, a data binding is established between the JavaScript objects and the view renderers, so that the updates are communicated by the framework, leaving us to concentrate on the data model and business logic behind the application.
The purpose of the Knockout.js library is to help design scalable, data-driven interfaces, but it does not attempt to be an alternative to standard frameworks such as jQuery or prototype.
In this chapter, let's review the features and components of Knockout.js that help Oracle JET handle the JavaScript MVVM architecture efficiently.
The View, View Model and Model responsibilities are represented...