Tag: angularjsforms

我可以访问控制器中的表单吗?

我目前正在使用以下内容。 $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当它在一个基础标签。 任何人都有这个解决scheme?