title: How do you get Angular.js to work in a Windows 8 store app?
body: <p>The app runs but Angular data objects are not recognized.</p>
  
  <p>Here is the JavaScript error I am getting:</p>
  
  <pre><code>Exception was thrown at line 1059, column 11 in ms-appx://28934b41-4dd2-4414-b9a9-
  a73c11c1b743/js/angular.js
  0x800a139e - JavaScript runtime error: No module: ngLocale
  Exception was thrown at line 4473, column 9 in ms-appx://28934b41-4dd2-4414-b9a9-
  a73c11c1b743/js/angular.js
  0x800a139e - JavaScript runtime error: HierarchyRequestError
  The program '[5112] WWAHost.exe' has exited with code 1 (0x1).
  </code></pre>
  
  <p>Here is the function around line 1059 in angular.js:</p>
  
  <pre><code>return ensure(modules, name, function() {
      if (!requires) {
        throw Error('No module: ' + name);
      }
  </code></pre>
  
  <p>And here is the function around line 4473:</p>
  
  <pre><code> if (parent) {
      parent.replaceChild(newNode, oldNode);
    }
  </code></pre>
  
  <p>I was able to fix the first error that I came across:</p>
  
  <pre><code>Unhandled exception at line 2031
   JavaScript runtime error: Unable to add dynamic content
  </code></pre>
  
  <p>by wrapping all of angular.js with <code>MSApp.execUnsafeLocalFunction</code></p>
  
  <pre><code>  MSApp.execUnsafeLocalFunction(function () {
            ....
        });   
  </code></pre>
  
  <p>These errors are from a test app that I created following the todo list example from the Angular.js homepage.</p>
  
  <p>Now what?  According to a free Microsoft Event I attended, "It is easy to add any third party JavaScript framework/library to a Windows 8 app!"  I may be new to this...but I don't think this is very easy!</p>
  
  <p>Is it even possible to use Angular.js with a Windows 8 app?</p>