I have a 'maps-services' module with a 'MapService' service as below:
angular.module('maps-services', [])
.service('MapService', [$log, function($log) {
this.initMap = function() {
}
this.updateMap = function() {
}
}]);
I also have a 'maps' module depending on 'maps-services' as below:
angular.module('maps', [
'maps-services'
]);
When I had a dependency on 'maps' in another module, I get an uncaught object error with the message:
"[$injector:nomod] Module 'ngLocale' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.3.0-beta.11/$injector/nomod?p0=ngLocale"
I don't understand what's going on and how I could debug the module loading to understand better where the problem is.
Could you please help me ?
Regards.