I have put my controllers of my angular app in separate files:
This is my project structure:
This is bootstrap.js:
angular.module('controllers', []);
I have this in every controller file:
angular.module('controllers')
.controller('UserCtrl', ['$scope', '$state', 'auth',
function ($scope, $state, auth) {
------
In my app.js I have this:
var app = angular.module('eva', ['ui.router','ngMaterial', 'controllers']);
-----------
At first every controller was in my app.js file, which worked perfectly. Now it doesn't load the controllers, how is this possible?
