We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad4a20d commit 9c34006Copy full SHA for 9c34006
src/ng/directive/ngModel.js
@@ -890,8 +890,8 @@ function setupModelWatcher(ctrl) {
890
// -> scope value did not change since the last digest as
891
// ng-change executes in apply phase
892
// 4. view should be changed back to 'a'
893
- ctrl.$$scope.$watch(function ngModelWatch() {
894
- var modelValue = ctrl.$$ngModelGet(ctrl.$$scope);
+ ctrl.$$scope.$watch(function ngModelWatch(scope) {
+ var modelValue = ctrl.$$ngModelGet(scope);
895
896
// if scope model value and ngModel value are out of sync
897
// TODO(perf): why not move this to the action fn?
0 commit comments