8

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

Jeroen
  • 60,696
  • 40
  • 206
  • 339
Abe
  • 22,738
  • 26
  • 82
  • 111
  • 1
    possible duplicate of [KnockoutJS: ko.applyBindings to partial view?](http://stackoverflow.com/questions/7342814/knockoutjs-ko-applybindings-to-partial-view) – Jeff Mercado Jun 27 '12 at 22:01

1 Answers1

10

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.

Community
  • 1
  • 1
Abe
  • 22,738
  • 26
  • 82
  • 111