Knockout.js is an open source JavaScript library for dynamic HTML UIs using the Model-View-View Model (MVVM) pattern. This tag is for questions specific to the 2.0 releases.
Knockout.js is an open source JavaScript implementation of the Model-View-ViewModel (MVVM) UI pattern. This tag is for version 2.0 specific questions. See also the main knockout.js tag for general information about Knockout.js.
Version 2.0 of Knockout.js as announced by its creator included the following new features:
- Control flow bindings such as
if
,ifnot
,with
, andforeach
; - Containerless control flow, e.g.
<!-- ko foreach: products -->
; - Access to parent binding contexts through contextual variables such as
$parent
; - Cleaner event handling using the
click
binding; - Binding providers (and hence external bindings)
- Throttling by extending observables.