I am new to AngularJS. I have seen many snippets on factory, service and providers. But I don't understand the exact usage of them. Please let me know the appropriate use of them. In which case should I use factory and when not to use?
Asked
Active
Viewed 83 times
0
-
The main difference is a service is a constructor function, and a factory is just a function. – Sterling Archer Mar 28 '17 at 02:25
1 Answers
0
You can read in
AngularJS: Service vs provider vs factory and
https://github.com/johnpapa/angular-styleguide/tree/master/a1#factories
Hope it help !