Running on Windows Phone

The application created to this point runs fine inside the iOS and Android simulators and emulators. However, you will get an error if you try to run it on Windows Phone. This is because frameworks such as AngularJS, EmberJS, and KnockoutJS (among others) use properties of JavaScript that Microsoft has flagged as unsafe because they can cause common security issues (properties such as innerHTML and outerHTML). Thankfully, there is a fix.

The Microsoft Open Technologies (MS Open Tech) group has released a JavaScript shim called the Dynamic Content shim for Windows Store apps. It is a JavaScript file you run to mitigate the errors when using client-side scripts. The shim still achieves the fundamental goal set by the security ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.