local DataSource getting an error when binding.

1 posts, 0 answers
  1. Jeff
    Jeff avatar
    7 posts
    Member since:
    Sep 2012

    Posted 20 Sep 2012 Link to this post

    This jsFiddle example is a slimmed down copy/paste from the MVVM RemoteBinding demo :


    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.
Back to Top