title: Cannot find controller with name NameCtrl
body: <p>I am using AngularJS configured in STS (Eclipse). How we can fixed this error?</p>
  
  <blockquote>
    <p>Cannot find controller with name NameCtrl.</p>
  </blockquote>
  
  <p>HTML </p>
  
  <pre><code>&lt;html ng-app&gt;
  &lt;head&gt;
  &lt;meta charset="ISO-8859-1"&gt;
  &lt;title&gt;AJ Example&lt;/title&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-rc.0/angular.min.js" &gt;&lt;/script&gt;
      &lt;script&gt;
        function NameCtrl($scope){
          $scope.firstName = 'John';
          $scope.lastName = 'Smith';
        }
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body ng-controller="NameCtrl"&gt;
      First name:&lt;input ng-model="firstName" type="text"/&gt;
      &lt;br&gt;
      Last name:&lt;input ng-model="lastName" type="text"/&gt;
      &lt;br&gt;
      Hello {{firstName}} {{lastName}}
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>