Tuesday 13 November 2018

What is Knockout JS? Features and why KO?

Introduction:
  • Knockout(KO) is JavaScript library that helps us to create rich, responsive and interactive user interface with a data model of an application.
  • It has declarative bindings, which allows us to bind the html elements of UI to any data model in a simple and convenient way.
  • It is based on MVVM architecture which fosters separation of concerns by separating application into application model, view and view model.
  • Unlike jQuery which is mostly for animation or event handling, Knockout.js is focused only on designing scalable and data-driven UI.
KO main features:
  • Language: As the Knockout.js framework is written with pure JavaScript, it is easily rendered on most browsers, and gels up easily with server-side technologies such as Java, .NET, RoR, or PHP
  • Declarative Binding: It is very simple to bind application data with html UI elements via simple and easy data-binding syntax. This helps improve responsiveness of the application.
  • Automatic view Refresh: With the two-way binding, the changes on the data model automatically update the view components (HTML UI) with the newer values.
  • Dependency Tracking: It automatically updates the UI whenever your data model changes. The same behavior in other words we can say “Tow way data binding”.
  • UI Template: Rapid template generation for the data model-driven UI component tree structure.
  • Trivially Extensible: implement custom behaviors as now declarative binding for easy reuse in just a few line of code.
  • Easily Enhanced: you can easily add new features to knockoutJS applications.
Why Knockout JS?
  • It is absolutely free and open source.
  • It library is very light weight and puts no extra load on the webpage.
  • It is pure java script library
  • It can be added on top of your existing application
  • It works on any mainstream browser.

Thanks..!!

No comments:

Post a Comment