Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add bindings after calling ko.applyBindings

In KnockoutJS, is there any way to add bindings after calling ko.applyBindings?

like image 799
Abe Avatar asked Sep 22 '11 17:09

Abe


1 Answers

Turns out the answer to my question is the same as this one: Can you call ko.applyBindings to bind a partial view?

ko.applyBindings accepts a second parameter, limiting the scope of binding to a specific element within the DOM. So as long as we know where the new bindings are located in the DOM, we can apply them separately afterwards.

like image 134
Abe Avatar answered Sep 27 '22 19:09

Abe