3 ms·
I officialy withdraws the comment above.. The Angular sample application runs run on my android device(which I already cood do with out VS support). But runnin
by andwaal 12y ago
I officialy withdraws the comment above.. The Angular sample application runs run on my android device(which I already cood do with out VS support).
But running my application as a Win8 app, which was my hope I could do, gives me the all to familiar :
"appx://com.microsoft.mdha.samples.angularjstodo/www/scripts/frameworks/angular.min.js
0x800c001c - JavaScript runtime error: Unable to add dynamic content. A script attempted to inject dynamic content or elements previously modified dynamically that might be unsafe."
So I guees they didn`t even bother to test their sample applications again Win8...
- AdamTReineke 12y agoIf you want to really get that sample working, here's a pull request that has Angular working in Win8 apps. I'm not sure how Angular changes since the request was made would merge so I wouldn't recommend it for anything beyond an experiment. https://github.com/angular/angular.js/pull/6217 https://github.com/angular/angular.js/pull/6217 The error originates because certain coding patterns may be unsafe and are blocked to protect users. Here's a SO answer on the topic, there may be a better MSDN page with the details, but it's late: http://stackoverflow.com/a/14471414 http://stackoverflow.com/a/14471414 (Disclaimer: I work on the IE Dev Tools team and helped test the Hybrid Apps debugger. I was not involved with the pull request or StackOverflow post linked above.)
- andwaal 12y agoAs I mentioned in the orginal comment im aware of the blocked coding patterns, but as I said I hoped they had found a way around it, since they obviously had made a gread amount of effort to get the VS13-> Cordova intigration working. The problem ain`t to patch the Angular source to pass the rules, but its all the other libraries used in a Cordova app which also voilates the rules. ( In my case I use Zurb Foundation, which used modernizr which again voilates the rules.) Patching and maintaining one libary to support Win8 would be acceptable, but to maintain all liberys with special Win8 work-arounds would be a mess. In a typical web-app work flow where one used Bower for maintaining external libarys this would be even worse.