We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cde98c commit 132d767Copy full SHA for 132d767
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