{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-example-angular-live-set/issues/11","repository_url":"https://api.github.com/repos/strongloop/loopback-example-angular-live-set","labels_url":"https://api.github.com/repos/strongloop/loopback-example-angular-live-set/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-example-angular-live-set/issues/11/comments","events_url":"https://api.github.com/repos/strongloop/loopback-example-angular-live-set/issues/11/events","html_url":"https://github.com/strongloop/loopback-example-angular-live-set/issues/11","id":127623339,"number":11,"title":"$watch function can't catch changes ?????","user":{"login":"yasser-kfupm","id":8435753,"avatar_url":"https://avatars.githubusercontent.com/u/8435753?v=3","gravatar_id":"","url":"https://api.github.com/users/yasser-kfupm","html_url":"https://github.com/yasser-kfupm","followers_url":"https://api.github.com/users/yasser-kfupm/followers","following_url":"https://api.github.com/users/yasser-kfupm/following{/other_user}","gists_url":"https://api.github.com/users/yasser-kfupm/gists{/gist_id}","starred_url":"https://api.github.com/users/yasser-kfupm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasser-kfupm/subscriptions","organizations_url":"https://api.github.com/users/yasser-kfupm/orgs","repos_url":"https://api.github.com/users/yasser-kfupm/repos","events_url":"https://api.github.com/users/yasser-kfupm/events{/privacy}","received_events_url":"https://api.github.com/users/yasser-kfupm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-example-angular-live-set/labels/triage","name":"triage","color":"eb6420"},{"url":"https://api.github.com/repos/strongloop/loopback-example-angular-live-set/labels/waiting","name":"waiting","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T07:38:01Z","updated_at":"2016-02-24T19:49:43Z","closed_at":null,"body":"Hi,\r\n\r\nin 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 !!!\r\n\r\nany idea how to catch changes ?\r\n\r\nPlease help me\r\n```\r\n$scope.$watch('colors', function(newValue, oldValue) {\r\n    console.log('update set')); \r\n```"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-example-angular-live-set/issues/comments/188427191","html_url":"https://github.com/strongloop/loopback-example-angular-live-set/issues/11#issuecomment-188427191","issue_url":"https://api.github.com/repos/strongloop/loopback-example-angular-live-set/issues/11","id":188427191,"user":{"login":"0candy","id":14314570,"avatar_url":"https://avatars.githubusercontent.com/u/14314570?v=3","gravatar_id":"","url":"https://api.github.com/users/0candy","html_url":"https://github.com/0candy","followers_url":"https://api.github.com/users/0candy/followers","following_url":"https://api.github.com/users/0candy/following{/other_user}","gists_url":"https://api.github.com/users/0candy/gists{/gist_id}","starred_url":"https://api.github.com/users/0candy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0candy/subscriptions","organizations_url":"https://api.github.com/users/0candy/orgs","repos_url":"https://api.github.com/users/0candy/repos","events_url":"https://api.github.com/users/0candy/events{/privacy}","received_events_url":"https://api.github.com/users/0candy/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T19:49:43Z","updated_at":"2016-02-24T19:49:43Z","body":"Does this work for you?\r\n```\r\nchanges.on('data', function(update) {\r\n  data.forEach(function(points) {\r\n    if($scope.paused) return;\r\n    points.values.push([\r\n      update.time,\r\n      update.usage[points.src]\r\n    ]);\r\n\r\n    while(points.values.length > MAX && points.values.length > 1) {\r\n      points.values.shift();\r\n    }\r\n\r\n    points.values = angular.copy(points.values);\r\n  });\r\n\r\n  $scope.$apply();\r\n});\r\n```\r\n\r\nhttps://github.com/strongloop/loopback-example-angular-live-set/blob/master/client/modules/chart/chart.controller.js#L36"}}