Say I have two modules (finance2, finance3), and each of them defines a service with the same name (currencyConverter).
If I tell my main module that it depends on just finance2, I can inject the service like this:
angular.module('invoice2', ['finance2'])
.controller('InvoiceController', ['currencyConverter', function(currencyConverter) {
However, if I want my invoice2 to depend on both modules, which currencyConverter would be injected? The one from finance2 or the one from finance3? I can control my own modules, but my concern is if you rely on other people modules that define factories with the same name. How does angular deal with that?
angular.module('invoice2', ['finance2','finance3'])
.controller('InvoiceController', ['currencyConverter', function(currencyConverter) {