Domande taggate «angularjs-forms»

9
Posso accedere a un modulo nel controller?
Attualmente sto usando il seguente. $scope.$$childHead.customerForm[firstName], così che: <form name="customerForm"> <input type="text" name="firstName" ng-model="data.customer.firstName" tabindex="1" ng-disabled="!data.editable" validationcustomer /> </form> Ma questo funziona solo in Chrome. Ora ho provato quanto segue: $scope.editCustomerForm[firstName], così che: <form name="customerForm" ng-model="editCustomerForm"> <input type="text" name="firstName" ng-model="data.customer.firstName" tabindex="1" ng-disabled="!data.editable" validationcustomer /> </form> Che non funziona. Nota che …
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.