Skip to content

Instantly share code, notes, and snippets.

@Nate-Wilkins
Created July 11, 2014 13:31
Show Gist options
  • Save Nate-Wilkins/f2727f1d82263a6c3682 to your computer and use it in GitHub Desktop.
Save Nate-Wilkins/f2727f1d82263a6c3682 to your computer and use it in GitHub Desktop.
Watch ngModel $modelValue changes
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