显示一个查询以编辑AngularJS中数组的所有值

时间:2014-09-06 11:14:18

标签: angularjs

如何创建公式以编辑每个发票的值。项目 - > item_name使用AngularJS?

invoices: {
_id: "78327837"
name: "ajay"
invoice_no: "23"
items: [
 0: {
item_name: "nasm"
quantity: "god"
}]
}

1 个答案:

答案 0 :(得分:3)

<input type="text" ng-repeat="item in invoice.items" ng-model="item.item_name">