Visual Studio 2013 AngularJS IntelliSense

时间:2015-09-15 09:35:22

标签: angularjs visual-studio visual-studio-2013

我正在尝试使用Microsoft Visual Studio 2013 Ultimamte Edition开发一个新的AngularJS项目。问题是我不能使用intellisense。我尝试了很多不同的东西,我在互联网和StackOverflow中读到。首先是这个

http://blogs.msdn.com/b/visualstudio/archive/2015/02/05/using-angularjs-in-visual-studio-2013.aspx

之后我阅读并尝试了这里的所有内容。

Visual Studio 2013 AngularJS intellisense support

我没有收到任何错误或警告。基本上我不能将Intellisense用于我的项目,我认为我在项目中正确引用了它。

的index.html

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Sample AngularJS project using Visual Studio</title>
    <script src="../Scripts/angular.js"></script>
    <script src="../Scripts/angular-route.js"></script>
    <script src="app.js"></script>
</head>
<body ng-app ="myApp">

</body>
</html>

app.js

var app = angular.module('myApp', ['ngRoute']);

app.controller("listController", ["$scope", "projects", function ($scope, projects) {
    $scope.<<Here I don't get Intellisense completion>>

我看到的唯一区别是我曾经安装了Resharper,但现在已经没有了。谢谢

0 个答案:

没有答案
相关问题