Module routes:
var switchModule = angular.module(\'switchModule\', []); switchModule.config([\'$routeProvider\', function($routeProvider) { $routeProvid
I had same problem and found that if you bootstrapped you angular two time you can have same error.
In my case I had but also angular.bootstrap(document,['app']) and that caused double initialization of controllers.
angular.bootstrap(document,['app'])
Hope this can save some time to someone.