【发布时间】:2016-07-02 11:13:34
【问题描述】:
对不起大家,我一直在努力理解我为什么需要这个
/// <reference path="../typings/browser.d.ts" />
module App {
angular.module("app", [""]);
}
我正在使用typings,这是我的tsconfig:
{
"compilerOptions": {
"experimentalDecorators": true,
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"module": "commonjs"
},
"files": [
],
"exclude": [
"node_modules",
"wwwroot"
]
}
我已经找到了几篇关于的帖子,但每次都有不同的答案和不同的场景。
我将Visual Studio 2015 与ReSharper、TypeScript 1.8.5 一起使用
一旦我删除<reference... 标签ReSharper 说“找不到名称'angular'”,但应用程序运行正常。 (可能是因为它再也找不到智能感知了)
有人遇到过同样的问题吗?我错过了什么吗?
【问题讨论】:
标签: angularjs typescript visual-studio-2015 resharper typescript1.8