我是离子和棱角分明的新手。我已经安装了cordova和ionic使用命令npm install -g cordova ionic。 我已经检查了package.json,它显示在下面
"@angular/common": "4.1.2",
"@angular/compiler": "4.1.2",
"@angular/compiler-cli": "4.1.2",
"@angular/core": "4.1.2",
"@angular/forms": "4.1.2",
"@angular/http": "4.1.2",
"@angular/platform-browser": "4.1.2",
"@angular/platform-browser-dynamic": "4.1.2",
"@ionic-native/core": "3.10.2",
"@ionic-native/splash-screen": "3.10.2",
"@ionic-native/status-bar": "3.10.2",
"@ionic/storage": "2.0.1",
"ionic-angular": "3.3.0",
"ionicons": "3.0.0",
"rxjs": "5.1.1",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.11"
请告诉我天气我将使用角度2语法或角度4? 并指导我如何安装离角与角度2。
答案 0 :(得分:1)
如果您从package.json文件安装并且显示git reset --hard
...那么您刚刚安装了Angular版本4.1.2。
您可以使用此处讨论的选项之一确认您在运行时使用的版本:how to find my angular version in my project?
关于安装离子...必须有一些提供该信息的文档。