AngularJS intellisense not working on Visual Studio 2015

后端 未结 11 1384
粉色の甜心
粉色の甜心 2020-11-30 01:38

According to this post intellisense should also be working on the new VS 2015, but so far I only get intellisense for the angular object and not for the dependencies or my c

11条回答
  •  情话喂你
    2020-11-30 02:13

    i had this issue.

    The visual studio IDE will scan any js files referenced in the HTML files and use them if neccesary (for the intellisense etc).

    My problem was i was referencing Angularjs using the CDN/http:// addresses and thus Visual studio did not have any information on angular.

    Try downloading the angularjs js file directly and include in your project and reference in your index.html, rebuild (just in case) and try again and hopefully it should work.

    Hope i helped.

提交回复
热议问题