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
Post a Comment