0
Diese meine JSON-Daten:So erhalten Sie Listendatenwert Ionic 2 von JSON?
[
{
"id": 1,
"label": "saw",
"total": "100"
},
{
"id": 2,
"label": "saw1",
"total": "300"
},
{
"id": 3,
"label": "saw2",
"total": "400"
}
]
Das ist mein Typoskript
this.http.get('http://www/upnionic/chart.php')
.map(res => res.json()).subscribe(data => {
this.qwerty = data; this.qwerty.forEach(element => {
let product = element.total;
this.pieChartData = product;
console.log(product);
});
});
Wie Ansicht Daten Json wie dies in HTML ionischen 2 bekommen?
["100","300","400"]
'var totalArray data.map = ((item) => item.total);' – devqon
Dies funktionierte !!!!, Danke vielmals –