AngularJs Controller code running indefinitely
<p>so I'm setting up a website to use Angular Routing, but I'm getting really odd behaviour. When I visit a route, it seems to be running the code in the controller indefinitely until the tab crashes. Here is my routing:</p>

<pre><code>angular.module(app.appName)
    .config([
        '$routeProvider', function($routeProvider) {
            $routeProvider
                .when('/', {
                    controller: 'homeController',
                    caseInsensitiveMatch: true
                })
                .when('/MyWishlists', {
                    templateUrl: 'assets/html/areas/MyWishlists/myWishlists.html',
                    controller: 'myWishlistsController',
                    caseInsensitiveMatch: true
                })
                .when('/Login', {
                    templateUrl: 'assets/html/areas/login/login.html',
                    controller: 'loginController',
                    caseInsensitiveMatch: true
                })
                .otherwise({ redirectTo: '/' });
        }
    ]);
</code></pre>

<p>And here is my <code>loginController</code>:</p>

<pre><code>angular.module(app.appName)
    .controller('loginController', ['$scope',
        function ($scope) {
            console.log('login');
        }]);
</code></pre>

<p>When I visit <code>http://localhost:50925/Login</code> it will run that <code>console.log('login');</code> over and over until Chrome ends it. What am I doing here 
that's causing this, I've never seen it before?</p>

<p>Could it be to do with my concatenated file? I'm using gulp to combine all controllers into <code>controllers.js</code>.</p>

<p>Edit: I have also just tried creating a new controller, <code>homeController</code> and added it to my routes, and it doesn't use the <code>homeController</code> at all on either routes that it's defined.</p>

<pre><code>angular.module(app.appName)
    .config([
        '$routeProvider', function($routeProvider) {
            $routeProvider
                .when('/', {
                    controller: 'homeController',
                    caseInsensitiveMatch: true
                })
                .when('/Home', {
                    controller: 'homeController',
                    caseInsensitiveMatch: true
                })
                .when('/MyWishlists', {
                    templateUrl: 'assets/html/areas/MyWishlists/myWishlists.html',
                    controller: 'myWishlistsController',
                    caseInsensitiveMatch: true
                })
                .when('/Login', {
                    templateUrl: 'assets/html/areas/login/login.html',
                    controller: 'loginController',
                    caseInsensitiveMatch: true
                })
                .otherwise({ redirectTo: '/' });
        }
    ]);

angular.module('wishlist')
    .controller('homeController', ['$scope',
        function ($scope) {
            console.log('home');
        }]);
</code></pre>