我目前使用的是以下内容。
$scope.$$childHead.customerForm[firstName]
,因此:
<form name="customerForm">
<input type="text" name="firstName"
ng-model="data.customer.firstName"
tabindex="1"
ng-disabled="!data.editable"
validationcustomer />
</form>
但这只适用于Chrome。现在,我尝试了以下方法:
$scope.editCustomerForm[firstName]
,因此:
<form name="customerForm" ng-model="editCustomerForm">
<input type="text" name="firstName"
ng-model="data.customer.firstName" tabindex="1"
ng-disabled="!data.editable"
validationcustomer />
</form>
这不管用。注意:我的表单在Foundation选项卡中。如何访问firstName
编辑:当form
位于基础选项卡中时,它看起来并没有添加到scope
中。
有人有解决这个问题的办法吗?
https://stackoverflow.com/questions/19568761
复制相似问题