B
B
buzzi8882014-05-12 14:53:46
JavaScript
buzzi888, 2014-05-12 14:53:46

Why doesn't angularJS work in Windows Store js apps?

I'm trying to use angular. As shown by Google - due to the new security settings of the IE frame in the application. What to do?
Unhandled exception at line 147, column 368 angular.min.js
0x800c001c - JavaScript runtime error: Failed to add dynamic content. The script attempted to inject dynamic content or elements that were previously modified dynamically, which could be unsafe. For example, using the innerHTML property to add a script element or malformed HTML will throw this exception. Use the toStaticHTML method to filter dynamic content, or create elements and attributes explicitly with a method such as createElement. For more information, see go.microsoft.com/fwlink/?LinkID=247104.

AngularJS v1.2.16
VS 2013

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxaon, 2014-05-13
@maxaon

First, don't use the minified version.
Second, try including csp , but it's unlikely to help.
Third, try googling. onehungrymind.com/windows-8-and-angularjs
In short, use a custom version of jQuery.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question