Module routes:
var switchModule = angular.module(\'switchModule\', []); switchModule.config([\'$routeProvider\', function($routeProvider) { $routeProvid
I too had a similar problem with a customDirective and unitentionally duplicated my controller.
angular.directive('myDirectivie', [function() { return { restrict: 'E', controller: 'MyDirectiveCtrl', ... } }]);
I resolved it by removing ng-controller tag at body level