I'm using Visual Studio 2013 which supports Intellisense for Angular.js. Intellisense does indeed work when I create an Angular.js module within a script tag in a HTML5 file. However, when I attempt to create the same module in a javascript file I get no Intellisense. I'm a bit baffled as to why this is the case.
Intellisense working in HTML file:
No Intellisense in blank javascript file:
I do not have Resharper installed in VS2013. Thanks in advance for your time and any advice!
The javascript file needs a reference to angular js so it know what you're talking about. It looks like this:
/// <reference path="ScriptFile1.js" />
See here for more info http://msdn.microsoft.com/en-us/library/vstudio/bb385682.aspx
Reference angular.js file on top of your JavaScript file like this:
/// <reference path="../scripts/angular.min.js" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With