AngularJS – module dependencies, naming clash
You can request a factory of a certain module explicitly (without dependency injection): var injector = angular.injector([‘thirdParty1’]); var hello1 = injector.get(‘hello’); var injector = angular.injector([‘thirdParty2’]); var hello2 = injector.get(‘hello’); You can also use this, to wrap the third party factories into own factories: angular.module(‘own1’, [‘thirdParty1’]).factory(‘hello1’, function () { var injector = angular.injector([‘thirdParty1’]); var hello = … Read more