The developers who familiar with Ruby on Rails, ASP.NET MVC, or any other Model View, they already know that these technologies are MVVM as a real-time form of MVC with declarative syntax. In another context, We can say that KnockoutJS is general way make our User Interfaces for displaying, editing for JSON data.
Features of KnockoutJS:
- Declarative bindings – KnockoutJS provide us a simple and obvious way to connect parts of out UI to our data model. Even, we can construct a complex dynamic UIs easily using arbitrarily nested binding contexts.
- Elegant dependency tracking – KnockoutJS is automatically updates the corresponding parts of your UI whenever your data model changes.
- Easily extensible – Using KnockoutJS we can easily implement custom behaviors as new declarative bindings for easy reuse in just a few lines of code.
- KnockoutJS Can be added on top of your existing web application without requiring major architectural changes.
- Compact - around 13kb after gzipping
- Comprehensive suite of specifications (developed BDD-style) means its correct functioning can easily be verified on new browsers and platforms
KnockoutJS is not jQuery:
KnockoutJS doesn’t compete with jQuery or similar low-level DOM APIs. KnockoutJS provides a complementary, high-level way to link a data model to a UI. KnockoutJS itself doesn’t depend on jQuery, but you can certainly use jQuery at the same time, and indeed that’s often useful if you want things like animated transitions. Following diagram shows, how we can put jQuery and KnockoutJS while developing any application.
Summary: This article covers basic introduction of KnockoutJS and also covers how KnockoutJS is different from jQuery. For readers who want to know about AngularJS, Please read Introduction of AngularJS , and to understand difference between AngularJS vs KnockoutJS. I hope this article will be helpful for you.