Module routes:
var switchModule = angular.module(\'switchModule\', []);
switchModule.config([\'$routeProvider\', function($routeProvider) {
$routeProvid
I had face same issue today. I had added controller name in my $routeProvider and also in my html.
$routeProvider
.when('/login', {
controller: 'LoginController',
templateUrl: 'html/views/log-in.html'
})
and in my view as
You can remove controller name either from your view or from your routeprovider.