Knockout.js 0 votes

Simplify dynamic JavaScript UIs by applying the model-view-view Model (MVVM) pattern

Knockout is a JavaScript library that helps you to create rich, responsive display and editor user interfaces with a clean underlying data model. Any time you have sections of UI that update dynamically (e.g., changing depending on the user’s actions or when an external data source changes), KO can help you implement it more simply and maintainably.

Headline features:

  1. Elegant dependency tracking - automatically updates the right parts of your UI whenever your data model changes
  2. Declarative bindings - a simple and obvious way to connect parts of your UI to your data model
  3. Flexible and sophisticated templating - construct a complex dynamic UI easily using arbitrarily nested templates
  4. Trivially extensible - implement custom behaviors as new declarative bindings for easy reuse in just a few lines of code

Additional benefits:

  1. Pure JavaScript library - works with any server or client-side technology
  2. Can be added on top of your existing web application without requiring major architectural changes
  3. Compact - around 25kb before gzipping
  4. Works on any mainstream browser (IE 6+, Firefox 2+, Chrome, Safari, others)
  5. Comprehensive suite of specifications (developed BDD-style) means its correct functioning can easily be verified on new browsers and platforms

Developers who’ve used Silverlight or WPF may recognize KO as an example of the MVVM pattern; developers more familiar with Ruby on Rails or other MVC technologies may see it as a real-time form of MVC with declarative syntax. In another sense, you can think of KO as a general way to make UIs for editing JSON data… whatever works for you :)

Author: Steven Sanderson
Repository: https://github.com/SteveSanderson/knockout
Revision Control: Git
Licence: MIT/X11 Licence
Country of Origin: