title: Angular.js error 404 routing
body: <p>I've got a simple angular.js app with two views: /login &amp; /register.
  My index.html looks this way:</p>
  
  <pre><code>... 
  &lt;body&gt;
  &lt;ul class="menu"&gt;
    &lt;li&gt;&lt;a href="#/login"&gt;Login&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#/register"&gt;Register&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;div ng-view&gt;&lt;/div&gt;
  ...(javascript inclusions)...
  </code></pre>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>var adventureApp = angular.module('ownAdventure', [
        'ngRoute',
        'ngCookies',
        'Login',
        'Register'
      ]);
  
  adventureApp.config(['$routeProvider', '$locationProvider',
    function ($routeProvider){
      $routeProvider
      .when('/login', {
          controller: 'LoginController',
          templateUrl: '/login/login.view.html'
      })
  
      .when('/register', {
          controller: 'RegisterController',
          templateUrl: '/register/register.view.html'
      })
  
      .otherwise({ redirectTo: '/login' });
  }]);
  </code></pre>
  
  <p>I've got both <strong>Login</strong> and <strong>Register</strong> modules in sepparate <strong>.js</strong> files, and added the <em>LoginController</em> and <em>RegisterController</em> accordingly in both files exactly the same. </p>
  
  <p><strong>login.controller.js (same with register):</strong></p>
  
  <pre><code>'use strict';
  
  var loginController = angular.module('Login', ['ngRoute', 'ngCookies']);
  
  loginController.controller('LoginController', ['$scope',
    function($scope) {
      $scope.test = 'This is a simple test';
  }]);
  </code></pre>
  
  <p>Both <strong>login/</strong> and <strong>register/</strong> folders are inside the <strong>app/</strong> folder at the same level as <strong>app.js</strong>, therefore I cannot figure out why I constantly get the following error message:
  GET <a href="http://localhost:8000/login/login.view.html" rel="nofollow">http://localhost:8000/login/login.view.html</a> 404 (Not Found)</p>
  
  <p>Thank you in advance.</p>