我在IntelliJ中遵循以下步骤来支持Angular。如何在IntelliJ中运行角度应用程序
https://www.jetbrains.com/help/idea/2017.1/using-angular.html#install_angular_cli
我已经创建了项目成功,但不知道怎么办好了。我想我不得不提一下Edit Configuration
选项中的一些配置。
在IntelliJ中运行Angular2应用程序的方式是什么?
我在IntelliJ中遵循以下步骤来支持Angular。如何在IntelliJ中运行角度应用程序
https://www.jetbrains.com/help/idea/2017.1/using-angular.html#install_angular_cli
我已经创建了项目成功,但不知道怎么办好了。我想我不得不提一下Edit Configuration
选项中的一些配置。
在IntelliJ中运行Angular2应用程序的方式是什么?
运行在IDEA角CLI创建角应用程序,你必须要逃避NPM Tool Windownpm start
启动应用程序,用于http://localhost:4200/
URL创建JavaScript 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/
要的IntelliJ运行Angular2应用经历以下步骤:
享受编码..!
可能我写得太快了。我创建了一个包名为'C:\ ... AngularIntelliJ13 \ package.json'(从我的项目中选择)的'npm'配置,命令选项是'run',脚本是'start'。一旦我点击了游戏,我打开了'http:// localhost:4200 /'(它在日志中被提及)并且可以看到该应用程序。这是运行Angular应用程序的正确方法吗?我注意到,一旦我改变了代码,应用程序并没有自动刷新。我不得不刷新浏览器。 –
使用提供的终端来运行您的命令。为了让您的应用程序自动刷新,您需要lite服务器,然后为应用程序提供服务。一旦你做了任何修改并保存它们,它会自动刷新浏览器 – Gautam
@Manu Chadha,是的,这是正确的方式 – lena