viewmodel = {
vm1: {
... viewmodel 1 stuff ...
},
vm2: {
... viewmodel 2 stuff ...
}
I set each small viewmodel separately with ko.mappings. And then I
bind the entire big viewmodel once to the page. The data-bind
attributes look like ...
data-bind="text: vm1.name()"
data-bind="text: vm2.partnum()"
This way I can put any viewmodel binding anywhere on the page all at
once. Works great. This works better than namespaces and it solves
your problem.