上的IntelliJ角2 code的建议 [英] Angular 2 code suggestions on IntelliJ
问题描述
我看到Angular2 RC本月早些时候发布的,而我是用测试版玩了几个月,所以我决定删除与
I saw that Angular2 RC was released earlier this month, and I was playing with the beta version for months, so I decided to delete the angular2 beta module with
npm uninstall angular2
然后我用的package.json从angular2快速入门教程安装RC版本:
then I used the package.json from the angular2 quickstart tutorial to install the RC release:
{
"name": "angular2-quickstart",
"version": "1.0.0",
"scripts": {
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ",
"lite": "lite-server",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},
"license": "ISC",
"dependencies": {
"@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/http": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
"@angular/router": "2.0.0-rc.1",
"@angular/router-deprecated": "2.0.0-rc.1",
"@angular/upgrade": "2.0.0-rc.1",
"systemjs": "0.19.27",
"es6-shim": "^0.35.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12",
"angular2-in-memory-web-api": "0.0.7",
"bootstrap": "^3.3.6"
},
"devDependencies": {
"concurrently": "^2.0.0",
"lite-server": "^2.2.0",
"typescript": "^1.8.10",
"typings":"^0.8.1"
}
}
我的应用程序的一些进口重写后工作得很好,但现在,我没有再自动完成对我的IDE角框架。
My application worked fine after some import rewrite, but now, I don't have autocompletion anymore for the angular framework on my IDE.
例如,的IntelliJ不承认* ngIf指令在我的模板
For example, IntelliJ doesn't recognize the *ngIf directive in my templates
下面是我的tsconfig.json:
Here is my tsconfig.json :
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
我是否需要配置别的东西使它重新工作?
Do I need to configure something else to make it work again?
谢谢您的回答
推荐答案
据的中的IntelliJ bug跟踪系统评论,中2016年1月2日EAP固定的问题。我更新到2016年1月3日EAP,或者更具体地说:
According to a comment in the IntelliJ bug tracker, the fixed the issue in 2016.1.2 EAP. I updated to 2016.1.3 EAP, or more specifically:
IntelliJ IDEA (Minerva) IU-145.1503.17
Build #IU-145.1503, built on May 20, 2016
和它解决了这个问题对我来说。
and it resolved the issue for me.
这篇关于上的IntelliJ角2 code的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!