-1
角度2のアプリケーションが初めてです。私は、このようなとしての私の画面を表示するために、私のJSONデータは次のようになりたいここでは、列ヘッダ(製品)も1 ダイナミックダイナミック1と顧客である角度2の動的テーブル
| Product 1 Product 2 Product 3 ............. Product N
----------------------------------------------------
Customer 1 | 2 1 4
Customer 2 | 3 2 3
Customer 3 | 4 3 2
.
.
.
Customer N
、としてスクリーンを持っている:
data: [{
ProductName:"Prod1",
Data: [{
CustomerName:"AAA",
CustomerId:1,
Count:2
},
{
CustomerName:"BBB",
CustomerId:2,
Count:3
}]
},
{
ProductName:"Prod1",
Data: [{
CustomerName:"AAA",
CustomerId:1,
Count:2
},
{
CustomerName:"BBB",
CustomerId:2,
Count:3
}]
}]
何を試しましたか?何が問題ですか? –
問題がありますか、これを行う方法を知りたいですか? – mast3rd3mon
ちょうど私が角度2でこれをどうやって行うことができるか、そしてjsonオブジェクトを渡す最善の方法は何かを知りたいのですが、 – Karthikeyan