我從JSON API在我的「listproduct.ts」我怎樣才能在陣列-IONIC 2
names = [];
this._listProduct.listProduct().subscribe(data => {
this.list = data;
console.log(data);
});
在的console.log,我取該結果作爲使用下面的代碼讀取數據取出JSON結果預計,附加圖片,供大家參考
我的要求 - 我需要獲取的名字排列
data.NAME
,我怎麼能做到這一點?
data.NAME
不起作用。
請幫忙。
它的工作,讓你知道很快 – user2828442
請投我的問題,如果它是明確 – user2828442