I try inject two modules with same names but content different
I'm using two angular libraries by chance have the same name
angular.module("main", ['moduleSameName']).
controller('mainController','factoryA', 'sumService' [function(factoryA, sumService){
this.name = factoryA.name;
this.result = sumService.sum(1,2);
}]);
//lib.js
angular.module("moduleSameName", []).
factory('factoryA', function(){
return { name : "giancarlo"}
});
//lib2.js
angular.module("moduleSameName", []).
service('sumService', function(){
this.sum: function(a, b){
return a + b
}
});
exist a any solution?