title: Breaking change from between AngularJS 1.2 and 1.4?
body: <p>The following code works in Angular 1.2 but breaks in 1.4 with error Error: [ng:areq] Argument 'MyController' is not a function, got undefined. The code comes from the book "ng-book", and a live working example can be found here: <a href="http://jsbin.com/uHiVOZo/1/edit?html,output" rel="nofollow">http://jsbin.com/uHiVOZo/1/edit?html,output</a>.</p>
  
  <p>What changed?</p>
  
  <pre><code>&lt;body&gt;
      &lt;div ng-controller="MyController"&gt;
          {{ clock }}
      &lt;/div&gt;
      &lt;script type="text/javascript"&gt;
          function MyController($scope) {
              $scope.clock = new Date();
              var updateClock = function() {
                  $scope.clock = new Date();
              };
              setInterval(
                  function() {
                      $scope.$apply(updateClock);
                  },
                  1000
              );
              updateClock();
          };
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>(Replace <a href="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.js" rel="nofollow">https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.js</a> with <a href="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-rc.2/angular.js" rel="nofollow">https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-rc.2/angular.js</a> in the jsbin link)</p>