AngularJS watch object
http://stackoverflow.com/questions/11592538/nested-models-in-angularjs
Resources:
https://groups.google.com/d/topic/angular/VD77QR1J6uQ/discussion
https://groups.google.com/d/topic/angular/-Tx8U9Xm07k/discussion
HTML
<div ng-app="watchApp" ng-controller="watchCtrl">
<input type="text" ng-model="a" />{{a.value}}
{{a}}
b={{b}}
</div>
JavaScript
angular.module('watchApp', []).controller('watchCtrl', function($scope) {
$scope.count = 0;
$scope.$watch('a', function() {
// change happened here do something
$scope.b=$scope.a;
}, true);
});