title: AngularJS example - Uncaught Error: No module: myapp
body: <p>I'm trying to run a simple hello world example and can't get it to work. What am I doing wrong here? I keep getting 'Uncaught Error: No module: myapp' error in the chrome console.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app='myapp'&gt;
  &lt;head&gt;
      &lt;title&gt;Angular App&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div ng-controller="TextController"&gt;
          &lt;h1&gt;Angular App says {{greeting.message}}&lt;/h1&gt;
      &lt;/div&gt;
  
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"/&gt;
      &lt;script type="text/javascript"&gt;
          var myModule = angular.module('myapp',[]);
          myModule.controller("TextController", function($scope){
              $scope.greeting.message = "hello world!";
          });
      &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here's the JSFiddle link: <a href="http://jsfiddle.net/HdR2c/1/" rel="nofollow">http://jsfiddle.net/HdR2c/1/</a></p>