'use strict'; (function(){ angular.module('app') .factory('MyController', MyController); MyController.$inject = [ '$scope', 'myService' ]; function MyController($scope, myService){ $scope.$watch( myService.getData, function (newValue) { //-- value has changed: do something console.log('new value:', newValue); } ); } }());