Hello,
The first question to ask is if you have used another view-model in the same view/page. When it happens, this usually occurs since vm's used one more time are stricted to be used by id joined with an element with id in the view/page.
The challange path is here (if the state is like yours):
1) Choose an element and give it an id like "js-vm-viewModelName1"
2)Choose an element and give it an id like "js-vm-viewModelName2"
3) Execute the applyBindings() for the viewModel objects like this: ko.applyBindings('custom-view-model-name', viewModel, 'js-vm-viewModelName1'); and ko.applyBindings('custom-view-model-name', viewModel, 'js-vm-viewModelName2');
4) Reload the page again,
Kind regards.
29 Mayıs 2013 Çarşamba 17:02:54 UTC+3 tarihinde Patrick Steele yazdı: