title: Error: [$injector:modulerr] Failed to instantiate module app
body: <p>I have this error and i dont knew how to resolve them, if you can help me
  My page html is follow</p>
  
  <pre><code>&lt;html ng-app="app"&gt;
  ...    
  &lt;div ng-controller="codeCtrl"&gt;
          &lt;textarea ui-codemirror ng-model="code"&gt;{{ code }}&lt;/textarea&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and my code js is follow:</p>
  
  <pre><code>        var myApp  = angular.module('app', ['ui']);
  
          myApp.value('ui.config', {
              codemirror: {
                  lineNumbers: true,
                  htmlMode: true,
                  mode: "text/html",
                  theme: "ambiance",
                  indentWithTabs: false,
                  readOnly: true,
                  matchBrackets: true
              };                  
          });
  
          function codeCtrl($scope) {
              $scope.code= '&lt;html style="color: green"&gt; &lt;head&gt;    &lt;title&gt;HTML Example/title&gt;  /head&gt;    body&gt; The indentation tries to be &lt;em&gt;somewhat &amp;quot;do what  I mean&amp;quot;/em&gt;... but might not match your style.  &lt;/body&gt; &lt;/html&gt;';
          };
  </code></pre>
  
  <p>i take this error</p>
  
  <pre><code> Error: [$injector:modulerr] Failed to instantiate module app due to:
   [$injector:nomod] Module 'app' is not available! You either misspelled the module name    or forgot to load it. If registering a module ensure that you specify the dependencies as   the second argument.
    http://errors.angularjs.org/1.2.10/$injector/nomod?p0=app
  </code></pre>