title: Angular JS 1.3.11: Argument 'MyController' is not a function
body: <p>I'm new to angular and i have a question.</p>
  
  <p>Im using 1.3.11 version of angular.</p>
  
  <p>Ive wrote a simple html code that that using simple angular and im getting the following error:</p>
  
  <blockquote>
    <p>Argument 'MyController' is not a function, got undefined in AngularJS [duplicate]</p>
  </blockquote>
  
  <p>the html code is:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;Angular Demo&lt;/title&gt;
  &lt;script src="lib/angular/angular.min.js"&gt;
   &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div ng-controller = "MyController"&gt;
    &lt;h1&gt; {{author.name}}&lt;/h1&gt;
    &lt;p&gt; {{author.title + ', ' + author.company}}&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
    function MyController($scope)
    {
      $scope.author= {
        'name' : 'Naim',
        'title' : 'MR',
        'company' : 'Naimos'
      }
    }
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thank you in advance.</p>