Part AngularJS IntelliSense in Visual Studio

Source: Internet
Author: User

In the previous videos if you had noticed as we were typing the angular code in script.js file we were getting some Intel Lisense but it definitely are not good though. For example if we type $routeProvider and then a. (DOT) We were not getting IntelliSense.

3 Simple Steps-get better IntelliSense for angular in Visual Studio

Step 1:Download AngularJS Extension for Visual Studio from the following link. The link displays the script in a Web page.
Https://raw.githubusercontent.com/jmbledsoe/angularjs-visualstudio-intellisense/master/src/Scripts/angular.intellisense.js

Step 2:Copy and paste the script in a new Notepad. Name it angular.intellisense.js and save it to the following folder on your computer
C:\Program Files (x86) \microsoft Visual Studio 12.0\javascript\references

Step 3:Now drag and drop the following 2 files from Scripts folder onto Script.js file
Angular.min.js
Angular-route.min.js

Visual Studio would automatically add references to the above 2 files in Script.js
<reference path= "Angular.min.js"/>
<reference path= "Angular-route.min.js"/>

At the this point, we type $routeProvider and then a. (DOT) in the Script.js file, we get great IntelliSense.

Part AngularJS IntelliSense in Visual Studio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.