AngularJS : Factory and Service? [duplicate]
This question already has an answer here: AngularJS: Service vs provider vs factory 30 answers EDIT Jan 2016: Since this still gets attention. Since asking this I've completed a few AngularJS projects, and for those I mostly used factory , built up an object and returned the object at the end. My statements below are still true, however. EDIT : I think I finally understand the main difference between the two, and I have a code example to demonstrate. I also think this question is different to the proposed duplicate. The duplicate says that service is not instantiable, but if you set it up as I