News for hackers. Stuff that matters.
Re:AngularJS: Factory vs. Service vs. Provider by minznerjosh on Sunday May 04, 2014 @10:44PM (#7696759)
.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?
});
Re:AngularJS: Factory vs. Service vs. Provider by alttab on Monday May 05, 2014 @10:28PM (#7702561)
I want the bike shed to be blue, god dammit!