Hacker News new | ask | show | jobs
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?
});
1 comments

I want the bike shed to be blue, god dammit!