Questions tagged «angular-foundation»

9
我可以在控制器中访问表格吗?
我目前正在使用以下内容。 $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> 这不起作用。请注意,我的表单位于“基金会”选项卡中。我该如何访问firstName? 编辑:当它位于“基金会”标签中时,似乎form未添加到中scope。 有人对此有解决方案吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.