The general answer is to create dependent access that subscribes to everything. This can be easily accomplished by executing ko.toJS(viewModel)inside the dependent object, since it will recursively unwrap all observables. You must be careful not to include yourself in the call ko.toJS, or you may end up in an endless loop.
If you are looking for something with a bit more functionality, take a look at this post .
source
share