Error: [ng:areq] Argument ‘cadastroEnderecoCtrl’ is not a function, got undefined

I’m using ionic with angularjs.

The error appears whenever you click the button that calls the address controller.

The button: ng-click=”goPage(‘app.cadastroEndereco’)”

My cadastroEnderecoCtrl.js:

(function () {
angular.module('starter.appController').controller('cadastroEnderecoCtrl', ['$scope', '$state', 'api', 'srvCampanhas', '$ionicLoading', function ($scope, $state, $api, $campanhas, $ionicLoading) {
    $scope.$on('$ionicView.enter', function() {
        setTimeout(function(){ window.ga.trackView(location.hash)},500);
    })
...
})();

My index.html:

<script src="lib/ionic/js/ionic.bundle.js"></script>

<!-- cordova script (this will be a 404 during development) -->
<script src="js/ng-cordova.min.js"></script>
<script src="lib/image-saver/imageSaver.js"></script>
<script src='js/angular-websql.js'></script>
<script src="cordova.js"></script>

<!-- your app's js -->
<script src="js/app.js"></script>
<script src="js/appController.js"></script>
<script src="js/campanhas/cadastroEnderecoCtrl.js"></script>

My app.js:

.state('app.cadastroEndereco', {
    url: '/cadastroEndereco',
    cache: false,
    views: {
        'menuContent': {
            templateUrl: 'templates/campanha/cadastro-endereco.html',
            controller: 'cadastroEnderecoCtrl'
        }
    }
  })

Source: New feed
Source Url Error: [ng:areq] Argument ‘cadastroEnderecoCtrl’ is not a function, got undefined