Intellisense for angular.js does not work in a javascript file

visual-studio-2013

Solution

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

Problem

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!

Original source

Related problems