我需要一些有关 angular2 嵌套反应式表单构建器的帮助。
我正在尝试创建带有详细嵌套表单数据输入屏幕的主控和详细信息;像下面的json:-
{
"docNo": "abc0001",
"transactionsDate": "01/01/2017",
"storeId": "abcd",
"invoiceDispatchDate": "01/01/2017",
"deliveryAddress": "abc street, abc qtrs..",
"purchaseDetail": [
{
"modelName": "abc leather",
"price": "70$",
"quantityDetail": [
{
"colorDetail": [
{
"colorName": "Black",
"quantity": [
{
"sizeNo": "11",
"quantity": 12
},
{
"sizeNo": "12",
"quantity": 10
},
{
"sizeNo": "10.5",
"quantity": 200
}
]
},
{
"colorName": "Red",
"quantity": [
{
"sizeNo": "11.5",
"quantity": 120
},
{
"sizeNo": "11",
"quantity": 50
},
{
"sizeNo": "12",
"quantity": 20
}
]
}
]
}
]
}
]
}
你能帮忙吗?
最好的问候, 耐莉