title: Angularjs Uncaught Error: [$injector:modulerr] when migrating to V1.3
body: <p>I am learning Angular.js and I am not able to figure out whats wrong with this simple code. It seems to look fine but giving me following error.</p>
  
  <pre class="lang-none prettyprint-override"><code>**Error**: Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.14/$injector/modulerr?p0=app&amp;p1=Error%3A%20…gleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.3.14%2Fangular.min.js%3A17%3A381)
  </code></pre>
  
  <p>And before adding <code>ng-app=<strong>"app"</strong></code> (I was just keeping it as <code>ng-app</code>) it was giving me following errors. Why is that?</p>
  
  <pre class="lang-none prettyprint-override"><code>Error: [ng:areq] http://errors.angularjs.org/1.3.14/ng/areq?p0=Ctrl&amp;p1=not%20a%20function%2C%20got%20undefined
      at Error (native)
      at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:6:417
      at Sb (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:19:510)
      at tb (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:20:78)
      at $get (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:75:331)
      at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:57:65
      at s (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:7:408)
      at A (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:56:443)
      at g (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:51:299)
      at g (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:51:316)
  </code></pre>
  
  <pre><code>&lt;!doctype html&gt;
      &lt;html ng-app="app"&gt;
        &lt;head&gt;
          &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"&gt;&lt;/script&gt;
  
        &lt;/head&gt;
        &lt;body&gt;
          &lt;div ng-controller="Ctrl"&gt;
            &lt;input ng-model="name"&gt;
            &lt;h1&gt;{{name}}&lt;/h1&gt;
            &lt;h2&gt;{{age}}&lt;/h2&gt;
          &lt;/div&gt;
  
           &lt;script&gt;
            var Ctrl = function($scope)
             {
                $scope.age = 24;
             };
            &lt;/script&gt;
  
  
        &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>