findyoursolution.in
How would you make an AngularJS service return a promise? Write a code snippet as an example - Find your solution
To add promise functionality to a service, we inject the “$q” dependency in the service, and then use it like so: angular.factory('testService', function($q){