javascript - Is it possible to force knockout to parse new bindings added via html binding? -


i adding simple html when user clicks table row. table row gets "expanded" , the html added via knockout html binding.

the html being injected view works fine, have added data-bind of html , knockout parse/process it. possible?

after add html, call apply bindings again restrict html you're looking @ newly-added html, so:

ko.applybindings(viewmodel, $("#new-html")[0]); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -