简体   繁体   English

如何使用Angular2应用快速入门演示

[英]How to Use Angular2 app QuickStart Demo

Trying out sample from this link https://angular.io/docs/js/latest/quickstart.html added and created all files with exact structure, installed dependancies , when i run this example by opening index.html file from src folder , but its stuck with "loading...." message in browser. 当我通过从src文件夹中打开index.html文件运行此示例时,从此链接中尝试示例https://angular.io/docs/js/latest/quickstart.html添加并创建了具有确切结构,安装相关性的所有文件。但它在浏览器中显示“正在加载...”消息。 I am trying this out on server running Cent OS7 with Apache 2 the entire app folder is inside html folder under www. 我正在使用Apache 2运行Cent OS7的服务器上尝试此操作,整个应用程序文件夹都位于www下的html文件夹内。 Is there anything else I need to configure ? 还有什么我需要配置的吗? Note I am not using nom lite server I know its for local testing. 注意我没有使用我知道用于本地测试的nom lite服务器。 I am trying this under apache. 我正在apache下尝试。 Any help will be appreciated. 任何帮助将不胜感激。

here is the source https://github.com/vdharankar/quickstart_aj 这是源https://github.com/vdharankar/quickstart_aj

通过将node_modules文件夹移动到服务器上src目录中进行排序,现在apache可以将这些.js文件提供给浏览器而不会出现问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM