问题描述
我正在按照 IntelliJ 中的步骤支持 Angular.
I am following steps in IntelliJ to support Angular.
https://www.jetbrains.com/help/idea/2017.1/using-angular.html#install_angular_cli
我已经成功创建了项目,但不知道如何运行它.我想我必须在 Edit Configuration
选项中提到一些配置.
I have created the project successfully but do not know how to run it. I guess I have to mention some configuration in Edit Configuration
option.
在 IntelliJ 中运行 Angular2 应用程序的方式是什么?
What is the way to run Angular2 application in IntelliJ?
推荐答案
要在 IDEA 中运行使用 angular-cli 创建的 Angular 应用程序,您必须从 NPM Tool Window 启动应用程序,创建JavaScript Debug 运行配置 http://localhost:4200/
URL 并点击调试.
To run Angular application created with angular-cli in IDEA, you have to run npm start
from NPM Tool Window to start the application, create JavaScript Debug run configuration for http://localhost:4200/
URL and hit Debug.
参见 https://blog.jetbrains.com/webstorm/2017/01/debugging-angular-apps/, https://www.youtube.com/watch?v=upgjCMHGpwo 了解更多信息.另请参阅 https://blog.jetbrains.com/webstorm/2016/04/angular-2-workflow-in-webstorm/
See https://blog.jetbrains.com/webstorm/2017/01/debugging-angular-apps/, https://www.youtube.com/watch?v=upgjCMHGpwo for more info.See also https://blog.jetbrains.com/webstorm/2016/04/angular-2-workflow-in-webstorm/
这篇关于如何在 IntelliJ 中运行 Angular 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!