angular.module('myApplication').factory('myService', [function() {
return {
name: 'name'
};
}]);
When I tried to inject above service in my controller.
myApplication.controller('myController', [ 'myService', function(myService) {}]);
It gives me below error after uglifying it:
Error: $injector:unpr Unknown Provider Unknown provider: myServiceProvider <- myService <- myController