http://jsfiddle.net/rniemeyer/LkqTU/

Can write html, js, and css files, html  code : <div class=’liveExample’> <p>First name: <input data-bind=’value: firstName’ /></p> <p>Last name: <input data-bind=’value: lastName’ /></p> <h2>Hello, <span data-bind=’text: fullName’> </span>!</h2> </div> js code : // Here’s my data model var ViewModel = function(first, last) { this.firstName = ko.observable(first); this.lastName = ko.observable(last); this.fullName = ko.computed(function() { //… Seguir leyendo http://jsfiddle.net/rniemeyer/LkqTU/

Publicada el
Categorizado como Knockout JS

KNOCKOUT : KEY CONCEPTS

DeclarativeBindings Easily associate DOM elements with model data using a concise, readable syntax AutomaticUIRefresh When your data model’s state changes, your UI updates automatically DependencyTracking Implicitly set up chains of relationships between model data, to transform and combine it Templating Quickly generate sophisticated, nested UIs as a function of your model data LINK SOURCE/INSTALL :… Seguir leyendo KNOCKOUT : KEY CONCEPTS

Publicada el
Categorizado como Knockout JS