reading release notes, angular supposed have better intellisense in vs2015.
after upgrading vs2015 vs2015rtm appear missing intellisense in script blocks on razor views, , in js files.
after "file new web application (asp.net 5 preview template)", i've added dependency angular via bower.json
{ "name": "asp.net", "private": true, "dependencies": { "bootstrap": "3.0.0", "bootstrap-touch-carousel": "0.8.0", "hammer.js": "2.0.4", "jquery": "2.1.4", "jquery-validation": "1.11.1", "jquery-validation-unobtrusive": "3.2.2", "angular": "~1.4.3" } } and can see taskrunner has run gulp task , generated lib\angular folder.

i've referenced angular in layout no intellisense.

do need install or manual copy of intellisense file required? if doesn't feel that's vs2015 intellisense enhancement, assume done on vs2013?
update
i've duplicated advice attached link , put angular.intellisense.js file in both
program files (x86)\microsoft visual studio 12.0\javascript\references
folder ,
program files (x86)\microsoft visual studio 14.0\javascript\references
folder
i have working intellisense in vs2013 not in vs2015.
also tried adding
/// <reference path="lib/angular/angular.js /> to _references.js file still no angular intellisense.
i installed 'angularjs.intellisense' nuget package , worked me.
https://www.nuget.org/packages/angularjs.intellisense/
strange why microsoft did not added default in rtm version.
update -
i found solution - talked 1 of microsoft's engineers issue , helped me fix issue..
all need add new js file wwwroot folder called: _references.js
and in should add reference js files working in following format:
/// <autosync enabled="true" /> /// <reference path="js/main.js" /> /// <reference path="lib/angular/angular.js" /> /// <reference path="lib/angular/index.js" /> or in solution explorer - right click on _references.js file , click on: auto-sync javascript references , click on ** update javascript references** (which automatically add references in solution:
after angular support in javascripts as: 
btw - works types of web projects - add _references.js file , add reference javascript libraries/files using , work.
i hope :).

Comments
Post a Comment