javascript - Email field does not reset in Angular documentation -
- https://docs.angularjs.org/guide/forms
- 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
Comments
Post a Comment