0
I have the module of my application:
angular.module('app', ['app.controllers','app.routes','app.services']);
I have my service 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
}]);
and 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 running the application, I get dependency injection error:
Unknown provider: usuarioServiceProvider <- usuarioService <- meuCtrl
I don’t understand what could be going on, since I do the injection at every appropriate location.
unless I’m making these wrong injections.
PS.: All . JS files are being loaded into index.html, none forgotten.
Post your HTML as well.
– Jéf Bueno