angular/angular.js — pull request #7414 by shahata (2014-05-09 19:04:00+00:00)
Title: feat(ngModelOptions): add validateOn option

Add option to set different triggers for validation than the triggers that actually update the model. A new method `$$validateViewValue` was extracted from `$commitViewValue` which can be called when a `validateOn` trigger occurs. This method sets the control as dirty and runs all `$parsers`, but doesn't actually change the model. The idea is that many times people want to pend or debounce the updates to the model in order to prevent a lot of invocations of watchers or just simply to update their model only when a form is submitted, but they would still like their users to get feedback immediately when the view is dirty or invalid.

BREAKING CHANGE:

This commit introduces the option to run `$parsers` without setting the `$modelValue` with the result.

Closes #7016