Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

.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?
});


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: