$watch function can't catch changes ?????
Hi,
in the angular-liveset-example https://github.com/strongloop/angular-live-set-example I add $watch function to see the changes in the Live Set object "colors", however, $watch function not catching any changes !!!
any idea how to catch changes ?
Please help me
$scope.$watch('colors', function(newValue, oldValue) {
console.log('update set'));
Hi, i can see the changes.
$scope.$watch('colors', function(newValue, oldValue) { console.log('update set'); });
@yasser-kfupm I also faced similar issue.. watch function was not firing.. it is mentioned here.. here i added a true as the third parameter and started working ..
try $scope.$watchCollection
@yasser-kfupm Did the above suggestions work for you?
Closing this issue due to inactivity.