Hello All, I’m a biginner with Ionic. I’m trying to implement a web service in my Mobile application. My Http request return me a Json file organised like this.
[
{
“Nomentreprise”: “”,
“Observation”: “”,
“uidauteur”: “”,
“title”: “”
},
{
“Nomentreprise”: “”,
“Observation”: “”,
“uidauteur”: “”,
“title”: “”
},
]
I’m able to return the datas by a console log. But i can’t display them on a HTLM page.
Please can you Help?
Before this, i managed to display datas on a HTLM page, but the web service returned a json file organised like this
{
{
“Nomentreprise”: “”,
“Observation”: “”,
“uidauteur”: “”,
“title”: “”
},
{
“Nomentreprise”: “”,
“Observation”: “”,
“uidauteur”: “”,
“title”: “”
},
}
The difference is the array. Don’t know how to display array.
You have to place it in component which belongs to template where you want to show data.
Or you can place it somewhere else, but you have to somehow send the data to proper component. But for now is easiest way to place it like I mention before.
Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.