I am trying to watch my model value from inside my linking function.
scope.$watch(attrs.ngModel, function() { console.log(\"Changed\"); });
The proper way to do this is:
app.directive('myDirective', function () { return { require: 'ngModel', link: function (scope, element, attrs, ngModel) { ngModel.$render = function () { var newValue = ngModel.$viewValue; console.log(newValue) }; } }; });