angular.module('test', []) .controller('MyController', function($scope, $http, $timeout, MyService, MyFactory) { $timeout(function() { $scope.foo = MyService.getBar(); }, 1000); })
By Hadrien Eu