Hi guys can you help me on how to call this type of JSON data in HTML ?
here’s my JSON data in my read.php
[{"id":"17","files":"11.17.17.xls","title":"awdawd","description":"wdwad"},
{"id":"18","files":"OJT-form-BSIT-3-2.doc","title":"wew","description":"awa"},
{"id":"19","files":"11.2.17.xlsx","title":"21515","description":"525465"}]
and this is my main.html ,
provider.loadData()
.then(data => {
console.log(data);
this.fileData = data;
})
}
How can i call it in my main.html ?
i use this code ,
<ion-content padding>
<ion-list>
<a *ngFor="let file of fileData">
<h1>{{files}}</h1>
<h2>{{title}}</h2>
<p>{{description}}</p>
</a>
</ion-list>
</ion-content>
and im getting error…
please help me