ngModel.NgModelController.$setUntouched()

$setUntouched();

Sets the control to its untouched state.

This method can be called to remove the ng-touched class and set the control to its untouched state (ng-untouched class). Upon compilation, a model is set as untouched by default, however this function can be used to restore that state if the model has already been touched by the user.

doc_AngularJS
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.