b'\n_START_ARTICLE_\nKnockoutJS\n_START_SECTION_\nVienk\xc4\x81r\xc5\xa1s piem\xc4\x93rs\n_START_PARAGRAPH_\n\xc5\xa0aj\xc4\x81 piem\xc4\x93r\xc4\x81 divi ievades lauki ir piesaist\xc4\xabti datu mode\xc4\xbca nov\xc4\x93rojamajiem main\xc4\xabgajiem (kod\xc4\x81 katrs \xc5\xa1\xc4\x81ds main\xc4\xabgais tiek defin\xc4\x93ts k\xc4\x81 \'observable\'). Savuk\xc4\x81rt pilnais v\xc4\x81rds ("full name") ir piesaist\xc4\xabts atkar\xc4\xabgakam main\xc4\xabgajam (ang\xc4\xbcu valod\xc4\x81\xc2\xa0\xe2\x80\x94 dependent observable, bet kod\xc4\x81\xc2\xa0\xe2\x80\x94 computed observable) un t\xc4\x81 v\xc4\x93rt\xc4\xabba tiek izr\xc4\x93\xc4\xb7in\xc4\x81ta. Tikl\xc4\xabdz ievades lauki tiek redi\xc4\xa3\xc4\x93ti, pilnais v\xc4\x81rds autom\xc4\x81tiski main\xc4\x81s un tam nav nepiecie\xc5\xa1ams pieasit\xc4\xabt paildus notikumu apstr\xc4\x81di.\n_START_SECTION_\nSkats (HTML)\n_START_PARAGRAPH_\n<p>First name: <input data-bind="value: firstName" /></p><p>Last name: <input data-bind="value: lastName" /></p>\n_START_SECTION_\nSkata Modelis (JavaScript)\n_START_PARAGRAPH_\nfunction ViewModel() {_NEWLINE_    this.firstName = ko.observable("Joe");_NEWLINE_    this.lastName = ko.observable("Bloggs");_NEWLINE__NEWLINE_    this.fullName = ko.computed(function() {_NEWLINE_        return this.firstName() + " " + this.lastName();_NEWLINE_    }, this);}ko.applyBindings(new ViewModel());'