|
|
|
|
|
by minznerjosh
4421 days ago
|
|
.factory('$timeout', function($window) { var $timeout = $window.setTimeout;
return $timeout;
}).service('$timeout', function($window) { // $timeout is a function, not an normal object. Why would I use a constructor
//function to provide it?
}); |
|