javascript - Email field does not reset in Angular documentation -


  1. https://docs.angularjs.org/guide/forms
  2. scroll binding form , control state.

if click reset button, fires off this:

$scope.reset = function(form) {     if (form) {       form.$setpristine();       form.$setuntouched();     }     $scope.user = angular.copy($scope.master);   }; 

but when click reset button, e-mail field of form not clear.

i'm following documentation , having same problem in own code. not sure if it's bug.

seems haven't been following documentation close. paragraph below form:

note novalidate used disable browser's native form validation.

the value of ngmodel won't set unless passes validation input field. example: inputs of type email must have value in form of user@domain.

no worries, happens of - glance through documentation ;)

edit: see these links also

https://github.com/angular/angular.js/issues/10027

angularjs reset form field type of email


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -