angular.service vs angular.factory
Asked 07 September, 2021
Viewed 1.6K times
  • 63
Votes

I have seen both angular.factory() and angular.service() used to declare services; however, I cannot find angular.service anywhere in official documentation.

What is the difference between the two methods?
Which should be used for what (assuming they do different things)?

9 Answer