ko.applyBindings accepts a second parameter that is a DOM element to use as the root.
This would let you do something like:
So, you can use this technique to bind a viewModel to the dynamic content that you load into your dialog. Overall, you just want to be careful not to call
applyBindings multiple times on the same elements, as you will get multiple event handlers attached.
~ Answered on 2011-09-08 03:38:08