This is my code its can log the value but can’t view Items
<App>
<DockPanel>
<JavaScript>
var Observable = require("FuseJS/Observable");
var status = 0;
var getData = Observable();
var getUser = Observable("asd");
fetch('***', {
method: 'POST',
headers: { "Content-type": "application/json"},
body: JSON.stringify({})
}).then(function(response) {
return response.json(); // This returns a promise
}).then(function(responseObject) {
getData = Observable(responseObject.d.item.list).value;
console.log(getData[6].name);
}).catch(function(err) {
console.log(err);
});
module.exports = {
getData:getData,
getUser:getUser
};
</JavaScript>
<StatusBarBackground DockPanel.Dock="Top"/>
<ScrollView>
<StackPanel>
<Each Items="{getData}">
<Text Value="{name}"/>
</Each>
</StackPanel>
</ScrollView>
</DockPanel>
</App>