You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
The pristine state on a <form> is only changed when the model is directly changed by the <input>.
We could potentially pass the form object and a field name (this would also require you adding a hidden <input> field with a name attribute to register it in the form) in to the slider and do something like scope.myForm.myField.$setViewValue(scope.myForm.myField.$viewValue); when the ngModel changes - this would handle all of the state changes that a form could have.
Any ideas on a better way to do this?
The text was updated successfully, but these errors were encountered:
The pristine state on a
<form>
is only changed when the model is directly changed by the<input>
.We could potentially pass the form object and a field name (this would also require you adding a hidden
<input>
field with aname
attribute to register it in the form) in to the slider and do something likescope.myForm.myField.$setViewValue(scope.myForm.myField.$viewValue);
when thengModel
changes - this would handle all of the state changes that a form could have.Any ideas on a better way to do this?
The text was updated successfully, but these errors were encountered: