Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8775113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:43:38+00:00 2026-06-13T18:43:38+00:00

The app runs but Angular data objects are not recognized. Here is the JavaScript

  • 0

The app runs but Angular data objects are not recognized.

Here is the JavaScript error I am getting:

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).

Here is the function around line 1059 in angular.js:

return ensure(modules, name, function() {
    if (!requires) {
      throw Error('No module: ' + name);
    }

And here is the function around line 4473:

 if (parent) {
    parent.replaceChild(newNode, oldNode);
  }

I was able to fix the first error that I came across:

Unhandled exception at line 2031
 JavaScript runtime error: Unable to add dynamic content

by wrapping all of angular.js with MSApp.execUnsafeLocalFunction

  MSApp.execUnsafeLocalFunction(function () {
          ....
      });   

These errors are from a test app that I created following the todo list example from the Angular.js homepage.

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!

Is it even possible to use Angular.js with a Windows 8 app?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:43:39+00:00Added an answer on June 13, 2026 at 6:43 pm

    The reason is because Angular puts html comment <!-- --> tags for ng-repeat and similar directives. Unfortunately Microsoft considers these to be unsafe when put in from Javascript using .innertHTML and is not allowed. This can be found here:

    http://msdn.microsoft.com/en-us/library/windows/apps/hh465388.aspx

    It happens at line 1534 in jQLite:

    var div = document.createElement('div');
                // Read about the NoScope elements here:
                // http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx
                div.innerHTML = '<div>&#160;</div>' + element; // IE insanity to make NoScope elements work!
                div.removeChild(div.firstChild); // remove the superfluous div
    

    What happens is the element is

    <!-- ngRepeat: item in arrayTest -->
    

    Then when angular does div.innerHTML = … the element gets removed. If you put a break point at div.removeChild, you will notice the div.innerHTML is without the element.

    [EDIT]
    After writing this response I tried adding

    MSApp.execUnsafeLocalFunction(function () { div.innerHTML = '<div>&#160;</div>' + element });
    

    It works! Apparently you have to wrap all of angularjs in MSApp.execUnsafeLocalFunction and then that line specifically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app runs fine in the ios 4.3 simulator, but not the ios 5
App runs on simulator on my MacBook Air, but not on iMac. I have
My app runs on my machine but not im tomcat this is my log
My GAE app runs fine from my computer, but when I upload it, I
I am encountering a strange behaviour, my app runs smoothly on simulator but crashes
This is a very weird problem. My app that runs just fine but somehow
i have an app that runs perfectly on android 1.6+, but admob ads are
I have a rails3 app that that has no environments/development.rb but runs just fine
I have a web app that runs fine in Visual web developer. But when
I've written a simple 'hello world' app which runs fine in an emulator, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.