Created
July 11, 2014 13:31
-
-
Save Nate-Wilkins/f2727f1d82263a6c3682 to your computer and use it in GitHub Desktop.
Watch ngModel $modelValue changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var modelCtrl = ctrls[1]; | |
if (modelCtrl) { | |
$scope.$watch(function () { return modelCtrl.$modelValue; }, function (newValue, old) { | |
$scope.ngModel = newValue; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment