Slide 97
Slide 97 text
Using Nokogiri server-side to
APPLY BINDINGS
Client-side
ko.bindingHandlers['text'] = {
'init': function(element, valueAccessor) {
// Set text initially
},
'update': function (element, valueAccessor) {
// Update text when value changes
}
};
Update is used on the client, but
we don’t need it on the server!