Transferred from: http://www.cnblogs.com/zkun/p/4277723.html
The first step: Add angular JS file references in the project;
The NuGet Package Manager is used here to add angular JS to the project.
Install-package Angularjs
Step two: Add smart hint JS file
We download angular.intellisense.js file and have two choices:
The first option is that we only want to use angular's smart hints feature in this project, then put the downloaded angular.intellisense.js in the same/scripts directory as the angular JS file.
The second option is that we want to use smart hints for all vs projects, so we put the Angular.intellisense.js file in C:\Program files (x86) \microsoft Visual Studio 12.0\ Javascript\references directory.
Then all the configurations are fully configured, so let's test them.
Create a new index.html file and introduce the angular JS file
Test results:
However, we usually write the JS code separately in the JS file, instead of the HTML file, the following test JS file to implement smart hints.
Create a new App.js file that demonstrates the following effects:
Note that you need to add a reference code to the JS file header
// / // / <reference path= "scripts/angular.js"/>/// <reference path= "scripts/ Angular-route.js "/>
This implements the angular code smart hint function in VS2013
VS2013 lack of smart reminders for JavaScript