0
Ich rufe über $ http.get eine JSON-Datei, aber die ionische Ansicht machen nicht den Ausgang richtig:Ionic und HTML-Ausgabe
loadNews() {
return new Promise(resolve => {
let header = {"Content-Type": "application/json"};
this.http.get('http://www.mywebsite.it/public/index.php/api/news/5')
.map(res => res.json())
.subscribe(data => {
resolve((data));
});
});
}
Dank Sebastian. So einfach, so richtig. Vielen Dank. Vielen Dank. – marco