title: Getting $injector:modulerr after including ['ngRoute']
body: <p>Having a <code>$injector:modulerr</code> error after including ngRoute. Using AngularJS 1.2.26</p>
  
  <hr>
  
  <pre><code>var app = angular.module('myApp', ['ngRoute']);
  app.config(function ($routeProvider) {
      $routeProvider.when('/', {controller: indexController1, templateURL: 'index1.html'});
      $routeProvider.when('/view/:id', {controller: indexController2, templateURL: 'index2.html'});
      $routeProvider.otherwise({redirectTo: '/'});
  });
  app.controller('indexController1', function ($scope) { .... }
  app.controller('indexController2', function ($scope, $routeParams) { .... }
  </code></pre>
  
  <hr>
  
  <p>html template</p>
  
  <pre><code>&lt;html ng-app="myApp"&gt;
  &lt;head&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="app.js"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div ng-view&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <hr>