Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(input): ensure ngModelWatch() triggers second digest pass when ap…
…propriate Due to an earlier change, ngModelWatch() no longer returns a value to the caller. This means the digest loop has no way to tell if the watch actually modified anything and so can not schedule another pass. This means any watches that watch form or model controller changes (e.g. watches on form.$valid) that are scheduled prior to an ngModelWatch() will not be able to see any changes made therin. This commit fixes this behavior by returning the latest evaluated ng-model value. Closes angular#5258
- Loading branch information