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
2016-03-29 16:12:16
Comments
Leave a Comment

Please login to continue.