AngularJS : When to use service instead of factory
Explanation You got different things here: First: If you use a service you will get the instance of a function (“this” keyword). If you use a factory you will get the value that is returned by invoking the function reference (the return statement in factory). ref: angular.service vs angular.factory Second: Keep in mind all providers … Read more