This jsFiddle example is a slimmed down copy/paste from the MVVM RemoteBinding demo :
http://jsfiddle.net/rally25rs/WuQwn/
When I run this code, I receive the error "k.push is not a function", and the binding fails. If I remove the DataSource, and instead make viewModel.productsSource = [ ... ] (so it is just an array, not a data source) then the binding works. It only seems to fail when I use a dataSource, but that is what the demo does.
Can someone point out what I am doing wrong?
Thanks for any help.
http://jsfiddle.net/rally25rs/WuQwn/
When I run this code, I receive the error "k.push is not a function", and the binding fails. If I remove the DataSource, and instead make viewModel.productsSource = [ ... ] (so it is just an array, not a data source) then the binding works. It only seems to fail when I use a dataSource, but that is what the demo does.
Can someone point out what I am doing wrong?
Thanks for any help.