A service with a 3rd party library callback function:
mbAppModule.service(\'aService\', function ($http) { this.data={\"somedata\":0}; var m3rdPartLib=\
Use $scope.$watch function. Look at my jsfiddle. I haven't your library, so I only simulate it - the value change from 0 to 1 after 5 seconds.
$scope.$watch