title: Uncaught TypeError: angular.module is not a function at
body: <p>This is in <code>app.js</code>:</p>
  
  <pre><code>var angular = angular.module('ngApp', ['ngRoute']);
  angular.config(function($routeProvider) {
  $routeProvider
      .when('/', {
          templateUrl: '../templates/companies.html',
          controller: 'companies'
      })
      .........
  });
  </code></pre>
  
  <p>This is in <code>companies.js</code>:</p>
  
  <pre><code>angular.module('ngApp').controller('companies', ['$scope', function($scope) {
      .........
  }]);
  </code></pre>
  
  <p>This is in <code>index.html</code>:</p>
  
  <pre><code>&lt;head&gt;
      &lt;title&gt;Basic demo&lt;/title&gt;
      &lt;script src="angular.js"&gt;&lt;/script&gt;
      &lt;script src="angular-route.js"&gt;&lt;/script&gt;
      &lt;script src="js/app.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="js/Controllers/companies.js" type="text/javascript" &gt;&lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>I keep getting this error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: angular.module is not a function
        at companies.js:1</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>