angular is not defined in Visual Studio 2015

假如想象 提交于 2019-12-06 04:32:12
Mostafa

The resolution for this issue is the following. You should not reference any files outside www folder in any Cordova project app.

All JS libraries added using Visual Studio NuGet package manager are added under Scripts folder outside www, which is not helpful in case of Cordova apps. To allow Cordova app to access JS files, copy any required libraries from the Scripts folder to any location under the www folder.

For example: "www-->scripts" as per your project structure and it will work!

Hope this helps.

PS: Same applies to Fonts, and Stylesheets.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!