feat(FormController): commit `$viewValue` of all child controls when form is submitted
Use the new `NgModelController.$commitViewValue()` method to commit the `$viewValue` on all the child controls (including nested `ngForm`s) when the form receives the `submit` event. This will happen immediately, overriding any `updateOn` and `debounce` settings from `ngModelOptions`. If you wish to access the committed `$modelValue`s then you can use the `ngSubmit` directive to provide a handler. Don't use `ngClick` on the submit button, as this handler would be called before the pending `$viewValue`s have been committed. Closes #7017
S
Shahar Talmi committed
a0ae07bd4ee8d98654df4eb261d16ca55884e374
Parent: adfc322
Committed by Peter Bacon Darwin <pete@bacondarwin.com>
on 5/9/2014, 10:50:00 AM