There 3 simple steps to 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...
Step 2: Copy and paste the script into 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 will automatically add references to the above 2 files in script.js
/// [reference path="angular.min.js" /]
/// [reference path="angular-route.min.js" /]
like this:
/// <reference path="angular.js" />
/// <reference path="angular-route.js" />
var app = angular.module("demo", ["ngRoute"])
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...
Step 2: Copy and paste the script into 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 will automatically add references to the above 2 files in script.js
/// [reference path="angular.min.js" /]
/// [reference path="angular-route.min.js" /]
like this:
/// <reference path="angular.js" />
/// <reference path="angular-route.js" />
var app = angular.module("demo", ["ngRoute"])
No comments:
Post a Comment