title: AngularJS: ngRoute, otherwise not working
body: <p>I have a really weird bug, I have set my routes and my controllers. Now I have just a blank page with no errors?</p>
  
  <p>index.html;</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="RekenTalent" lang="nl"&gt;
      &lt;head&gt;
          &lt;title&gt;Rekentalent.nl: Ben jij een talent in Rekenen?&lt;/title&gt;
          &lt;!-- Stylesheets --&gt;
          &lt;link rel="stylesheet" type="text/css" href="/app/front/assets/stylesheets/style.css"&gt;
          &lt;!-- AngularJS --&gt;
          &lt;script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.16/angular.min.js"&gt;&lt;/script&gt;
          &lt;script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.16/angular-route.min.js"&gt;&lt;/script&gt;
          &lt;script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.16/angular-animate.min.js"&gt;&lt;/script&gt;
          &lt;!-- Controllers --&gt;
          &lt;script src="/app/front/controllers/controller.js"&gt;&lt;/script&gt;
          &lt;!-- Router --&gt;
          &lt;script src="/app/front/router.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body ng-view&gt;&lt;/body&gt;
  &lt;/html
  </code></pre>
  
  <p>></p>
  
  <p>Controller.js:</p>
  
  <pre><code>/**
  *  RekenTalent
  *
  * Copyright 2014 - Rekentalent.nl
  */
  var RekenTalent = angular.module('RekenTalentControllers', []);
  
  RekenTalent.controller('rekenCtrl', ['$scope', function($scope){
  
  }]);
  </code></pre>
  
  <p>Router.js:</p>
  
  <pre><code>var RekenTalent = angular.module('RekenTalent', [
      'ngRoute', 'RekenTalentControllers'
  ]);
  
  RekenTalent.config(['$routeProvider', function($routeProvider) {
      $routeProvider.
      when('/index', {
          templateUrl: '/templates/index.html',
          controller: 'rekenCtrl'
      }).
      otherwise({
          redirect: '/index'
      });
  }]);
  </code></pre>
  
  <p>And /templates/index.html says just 'hi'. Does anyone know why I get a blank page? It should redirect me to /index.html and /index.html should use /templates/index.html as the template. Whats the problem and the fix?</p>
  
  <p>UPDATE:</p>
  
  <p>when I go to /index it works, so the otherwise param doesn`t work, why not?</p>