The short answer is that it is not supported. The long answer is that there are some ways around. One way is to invoke cleanNode before applyBindings , but this does not clear the event handlers. Another way is to wrap your look model in the observable, and then update to observe the snap binding; this works much better, but still has a slight problem (see below).
Here is your example using an observable-type model method: http://jsfiddle.net/mbest/9UcUs/9/
The only problem I encountered using the observable view model is that the event handlers are not completely updated with the new view model. They will call the correct function in the new view model, but the values โโof this and data will be for the original view model.
Edit:
Knockout 3.0 (currently scheduled for release this month) fully supports observable viewing models. There may be problems with user bindings, but hopefully all of this will be documented soon.
Michael best
source share