Attempting a simple task here.
Inside my controller:
$scope.testObject = { name : 'john' };
$scope.$watch('$scope.testObject.name', function (e, n, v) {
console.log('reached');
});
In my view:
<input type="text" ng-model="testObject.name"/>
The input field is connected to the testObject's name property and upon loading the controller, it enters the $watch function.
But when I modify the input value, the $watch function doesn't get activated. Any idea why?
I also attempted setting the third parameter of $watch to true, but it had no impact.