I am having an issue with Knockout which seems a bit puzzling.
I have a list of contacts, which I want to bind to the UI (observableArray).
However I do not need the items themselves to each be observable, since they are only updated through a dialog box and I don't need each field tracked separately.
I have the following jsFiddle to demonstrate my issue:
var c = contacts()[0];
c.name="James";
contacts.splice( 0, 1, c );
// the contacts observableArray is now correct but the UI is unchanged
For some reason the splice method does not update the View??
Thanks in advance.
I really think that Knockout should allow a trigger('change') or some other method on observables to make this type of thing easier.