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.
What are Services, Factories and Providers in short.
Share this highlighthttp://www.safaribooksonline.com/a/developing-an-angularjs/260742/