title: $injector:modulerr error with my angular app
body: <p>I am getting this error. </p>
  
  <p>Uncaught Error: [$injector:modulerr] <a href="http://errors.angularjs.org/1.2.26/" rel="nofollow">http://errors.angularjs.org/1.2.26/</a>$injector/modulerr?p0=app&amp;p1=TypeError%3…gleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.26%2Fangular.min.js%3A18%3A387)</p>
  
  <p>HTML    </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="app"&gt;
  &lt;head&gt;
      &lt;title&gt;Angular Intro&lt;/title&gt; 
      &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
  
      &lt;!-- Custom styles for this template --&gt;
      &lt;link href="./css/signin.css" rel="stylesheet"&gt;
      &lt;!-- &lt;link rel="stylesheet" href="style.css"&gt; --&gt;
  
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"&gt;&lt;/script&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular-route.min.js"&gt;&lt;/script&gt;
  
      &lt;script src="js/app.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-12"&gt;
              &lt;h1 class="text-center"&gt;Angular App&lt;/h1&gt;
              &lt;div id="view" ng-view&gt;
  
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>App.js</p>
  
  <pre><code>var app=angular.module('app', ['ngRoute']).config(function($routeProvider){
      $routeProvider.when('login',{
          templateUrl:'login.html',
          controller:'LoginController'
      });
      $routeProvider.when('home'),{
          templateUrl:'home.html',
          controller:'HomeController'
      }
      $routeProvider.otherwise({redirectTo : '/login'});
  });   
  
  app.controller('LoginController', function(){
  
  });
  
  app.controller('HomeController', function(){
  
  });
  </code></pre>