javascript Programming Glossary: pristine
Detect Unsaved changes and alert user using angularjs http://stackoverflow.com/questions/14852802/detect-unsaved-changes-and-alert-user-using-angularjs ng model myModel.text p myModel.text myModel.text p p pristine myForm. pristine p p dirty myForm. dirty p button ng click revert.. p myModel.text myModel.text p p pristine myForm. pristine p p dirty myForm. dirty p button ng click revert Set pristine.. p p dirty myForm. dirty p button ng click revert Set pristine button form body html How to alert the user on browser close..
AngularJS browser autofill workaround by using a directive http://stackoverflow.com/questions/14965968/angularjs-browser-autofill-workaround-by-using-a-directive timeout function var newVal elem.val if ngModel. pristine origVal newVal ngModel. setViewValue newVal 500 form name.. The one thing I definitely recommend is to check ngModel. pristine and make sure you're not overwriting some poor user's input...
|