AngularJS : What is a factory?
From what I understand they are all pretty much the same. The major differences are their complexities. Providers are configurable at runtime, factories are a little more robust, and services are the simplest form. Check out this question AngularJS: Service vs provider vs factory Also this gist may be helpful in understanding the subtle differences. …