Thanks for that, removing the objects from the array seems to now display all of the items, however the values don’t seem to act like observables.
I have it set so that I display the name and have a text box linked to the name for each item however when I type into the the displayed name in the doesn’t update.
What am I doing wrong?
Further is there a simple/efficient way of extracting items from arrays (in the case of a JSON from a rest call)?
The reason for this is that the fields of your items are not observable.
You have to structure them like this:
var people = Observable([
{"id":1,"name":Observable("Jake")},
{"id":2,"name":Observable("Julie")},
{"id":3,"name":Observable("Jim")}
]);
Then when you change the values remember that you have to access them by .value:
people.getAt(0).value = "Kristian";
You can fill an observable with the contents of an array using the replaceAll method,
but since you need a deeper mapping (turning some fields into observables), i don’t think this is enough for your case.