Hello,
I have followind json structure from remote :
{
"post_id": 68,
"post_title": "Lundi",
"content": "<strong>LUNDI</strong>\r\n\r\n10h00 - 12h30\r\n\r\n ",
"img": "http://www.mydomain.com/im_programme.jpg",
"extrait": "<strong>LUNDI</strong>\r\n\r\n10h00 - 12h30\r\n\r\n ",
"post_url": "http://www.mydomain.com/?semaine=lundi",
"ipad": "<h4>10h00 - 12h30</h4>\r\n "
}, ... etc
My code to fetch :
...
<JavaScript>
fetch('http://www.mydomain.com/xxx/?get=videos')
.then(function(response) { return response.json(); })
.then(function(responseObject) {
console.log(JSON.stringify(responseObject)) // JSON successfully received
data.value = responseObject;
});
module.exports = {data: data};
</JavaScript>
<Each Items="{data}">
<Grid ColumnCount="2">
<Text Value="{post_id}" />
<Text Value="{post_title}" />
</Grid>
</Each>
...
When i preview, nothings displayed to the simulator, what i have done wrong? the console.log diplays the retrieved json on the monitor but i don’t know how to loop on fuse.
Thank you for help, i am about to experiment some ui also, i will post here results soon