O'Reilly logo
  • Bach Ly thinks this is interesting:

Services, providers, and factories are all just fancy ways of saying "library".  A broad description of a library would be some collection of behavior that is reusable across multiple codebases.  Services provide this by acting as an instantiated, singleton object, likely full of many instance methods.  Factories can provide a new object every time, perhaps full of functions, or perhaps just a single function, or even object.  Providers act much like factories, but they are configurable before AngularJS hits its "run" phase.


Cover of Developing an AngularJS Edge


What are Services, Factories and Providers in short.