title: ''Error: $controller:ctrlreg A controller with this name is not registered
body: <p>I am following a video tutorial on AngularJS on safaribooks 
  and on Lesson 3.1 even though I have the same code as in the video I get the error specified in the title.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;html ng-app&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" href="css/app.css"&gt;
  &lt;link rel="stylesheet" href="css/bootstrap.css"&gt;
  &lt;script type="text/javascript" src="angular.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body style="padding: 50px"&gt;
  &lt;div ng-controller = "AlbumListController"&gt;
  &lt;p&gt;&lt;input placeholder="Type to search..." type ="text" ng-model="searchFor" size="30"/&gt;&lt;/p&gt;
  &lt;p&gt;
  There are {{ albums.length}} albums available to view:
  &lt;/p&gt;
  &lt;div class="album panel panel-primary" ng-repeat="album in albums | filter:{ title: searchFor} | orderBy: 'date'"&gt;
      &lt;!-- --&gt; 
      &lt;div class="panel-heading"&gt;
          &lt;div style="float: right"&gt; {{album.date}}&lt;/div&gt;
          {{ album.title }}
      &lt;/div&gt;
          &lt;div class= "description"&gt;
              {{ album.description}}
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;script type="text/javascript"&gt;
  function AlbumListController ($scope) {
      $scope.albums = [ { name: 'madrid1309', title:'Weekend in Madrid', date: '2013-09-01', description: 'FUN FUN FUN FUN'},
  { name: 'iceland1404', title:'Holiday in Iceland', date: '2014-09-01', description: 'FUN FUN FUN'},
  { name: 'thailand210', title:'Sun and fun in Thailand', date: '2012-09-01', description: 'FUN FUN'},
  { name: 'australia', title:'A wedding in Melbourne', date: '2011-09-01', description: 'FUN'}];
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="https://imgur.com/a/E9eh1" rel="nofollow noreferrer">The code from video</a> - it's supposed to be identical to mine and we have the same setup since I followed step by step from start and haven't had issues so far.</p>
  
  <p><a href="https://imgur.com/a/Z88tk" rel="nofollow noreferrer">Desired output</a></p>
  
  <p>I noticed there were answers for this question on this website before but they didn't answer my question.</p>
  
  <p>Thank you in advance.</p>