Template Sample
Grid With Price Sample
Mouse Event Handling Sample
observable event Sample
Y Sample
required observable extender Sample
isoDate extenders Sample
Friends Complete Sample
» Knockout Introduction Page
Prior to Knockout 2.0, computed observables were known as dependent observables. With version 2.0, it was decided to rename ko.dependentObservable to ko.computed. At runtime, ko.dependentObservable refers to the same function instance as ko.computed the two are equivalent.
Parameters ko.applyBindings( ..., ...);
  1. The first parameter says what view model object you want to use with the declarative bindings it activates
  2. Optionally, you can pass a second parameter to define which part of the document you want to search for data-bind attributes. For example,
    ko.applyBindings(myViewModel, document.getElementById('someElementId'));
    This restricts the activation to the element with ID someElementId and its descendants,
    which is useful if you want to have multiple view models and associate each with a different region of the page.