Create a windows universal app using angularjs

前端 未结 2 1164
余生分开走
余生分开走 2021-01-07 04:55

How to create a windows universal app with angularjs?

I created an universal windows app using visual studio, added the angular script (for testing purposes, I trie

相关标签:
2条回答
  • 2021-01-07 05:17

    A great solution to this problem is to WinStore-JsCompat in your project. Just include it and add a reference in you .html file before all other scripts and you're good to go.

    0 讨论(0)
  • 2021-01-07 05:36

    Windows Universal app development can be tricky, especially if you are using angularjs. As suggested by Sorskoot, winstore-jscompat is required to be able to use angularjs in your universal windows app.

    I suggest using this fork of jscompat by AndyB that I found to be working with my test project.

    Try adding ng-csp attribute to your Angularjs app as mentioned in their docs for windows universal apps https://docs.angularjs.org/api/ng/directive/ngCsp

    You are now two steps closer to making a "universal" windows app!

    0 讨论(0)
提交回复
热议问题