Say I have a crudService.js file:
crudService.module('genericCrudService', ['$http', '$log', 'config',  function ($http, $log, config) {
        ....
        return {
            setSomeAttribute: function(m) {
                // set attribute
            }
        }
    }]);
And then I have a module that need to differently configured instances of this crud service:
module.factory('Task', ['genericCrudService','genericCrudService', function (service, actionService) {
        ...
        return {
           init: function(p) {
               service.setSomeAttribute('a');
               actionService.setSomeAttribute('b');
           }
        }
    }]);
But then I noticed when trying to use the service variable, that its attribute is set to 'a'. What am I doing wrong?
 
     
     
    