angular.service vs angular.factory
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)?