I would have thought I see 2 items rendered with the 2 values in the array.
Firstly: the observable only has one value and that is the array you gave it. (The fact that the array contains 2 elements isn’t something it knows about).
If you instead did: datas = new Observable("1", "2"); then datas would be an observable list with 2 values.
And secondly: Text.Value expects exactly one value so it won’t render all the contents in the observable list. If you want all the strings to be in the same text tag then you’ll have to concatenate them in JS first.
Edit: Sorry, I didn’t notice the <Each> when I first answered this.
That does work but perhaps I did not give the full context. I am trying to populate the Observable as an array, then render a list of each item using Each
The actual structure returned is:
[{"id":"1"},{"id":"2"},{"id":"3"},{"id":"4"}]
So basically I want to have 4 rows with the numbers of 1…4 printed.
In this case I would have hoped to have