SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

feat(FormController): add `$rollbackViewValue` to rollback all controls

Currently it is possible to use `ngModelOptions` to pend model updates until form is submitted, but in case the user wants to reset the form back to its original values he must call `$rollbackViewValue` on each input control in the form. This commit adds a `$rollbackViewValue` on the form controller in order to make this operation easier, similarly to `$commitViewValue`.

Closes #7595
S
Shahar Talmi committed
85b77314ed8e4b45d7365a24a47349ed94672aeb
Parent: d2963ad
Committed by rodyhaddad <rody@rodyhaddad.com> on 7/1/2014, 10:52:49 PM