将表单控件与嵌套对象对齐

时间:2017-10-24 06:07:34

标签: javascript html css angularjs angular

[{
    "customer name": "customerA",
    "invoice": [{
        "invoicename": "invoice1",
        "invoiceid": 123
    }, {
        "invoicename": "invoice2",
        "invoiceid": 123
    }]
}, {
    "customer name": "customerB",
    "invoice": [{
        "invoicename": "invoice1",
        "invoiceid": 123
    }, {
        "invoicename": "invoice2",
        "invoiceid": 123
    }]
}, {
    "customer name": "customerC",
    "invoice": [{
        "invoicename": "invoice1",
        "invoiced": 123
    }]
}]

我想使用angular1.4创建以下格式的动态表单输入控件以及表单输入验证。

发票对象动态更改(要么有一个或两个发票)

Row1
CustomerA invoicenametextbox invoicenametextbox  invoiceidtextbox invoiceidtextbox 

Row2
CustomerB invoicenametextbox invoicenametextbox  invoiceidtextbox invoiceidtextbox 

Row3
CustomerC invoicenametextbox emptyspace  invoiceidtextbox emptyspace

0 个答案:

没有答案