I have the module for my application:
angular.module('app', ['app.controllers','app.routes','app.services']);
I have my services module:
angular.app('app.services', [])
.factory('usuarioService', ['$rootScope', 'renderService',
function($rootScope, renderService){
// logica do factory
}]);
angular.module('app.services', [])
.factory('renderService', ['$http',
function($http){
// logica do factory
}]);
I have my controller:
angular.module('app.controllers', ['app.services'])
.controller('meuCtrl',
['$scope','$rootScope','usuarioService','renderservice',
function($scope, $rootScope, usuarioService, renderService){
// logica do controller
}]);
But when I run the application, I get dependency injection error:
Unknown provider: usuarioServiceProvider <- usuarioService <- meuCtrl
I do not understand what may be happening, since I do the injection in every appropriate place.
Unless I'm making these wrong injections.
PS: All .JS files are being loaded in index.html, none have been forgotten.