角度2:NodeJS与XAMPP [英] Angular 2: NodeJS vs XAMPP

查看:246
本文介绍了角度2:NodeJS与XAMPP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习Angular 2,在某些主题上我很迷茫……就像服务器一样.

I'm starting to learn Angular 2 and I am quite lost in some subjects... like the server.

按照快速安装说明进行操作,在Node中运行项目时,我安装了Node和npm ...,一切都变得很完美.标签<label>被识别,并获取该标签的模板(在本例中为html表单).

Following the instructions for a Quick Setup I installed Node and npm... when I run the project in Node everything goes perfect. The label <label> gets recognized and it gets the template for that label (in this case an html form).

但是当我在MAMP中运行相同的项目时,该标签未被识别,并且在控制台中针对与该标签相关联的模板出现了无法加载资源"错误.

But when I run the same project in MAMP, that label doesn't get recognized and comes out a 'Failed to load resource' error in the console for the template associated to that label.

所以我想Angular 2依赖于Node,这是一个问题,因为我想稍后上传项目,而且我认为我的托管计划不允许我运行Node ...

So I guess Angular 2 is dependent on Node and that's a problem because I want to upload later the project and I think my hosting plan doesn't allow me to run Node...

我不知道我是否正在预判,也许任何人都可以帮我解决这个问题……谢谢.

I don't know if I'm prejudging, maybe anybody can help me clear this... Thanks.

推荐答案

Angular2在node.js上没有任何关系或任何依赖项.

Angular2 has niether any Relation nor any Dependency on node.js.

您可以仅使用Angular2软件包编写Angular2应用程序,而无需使用nodemampxampp并托管该应用程序.

You can write Angular2 app just using Angular2 packages without using node or mamp or xampp and host that app.

如果您使用Angular2和node.js组合编写了任何内容,则可以将其托管在免费服务中,例如 Heroku 用于测试.

If you have written any thing in Angular2 and node.js combination then you can host it on free services like Heroku for testing purpose.

这篇关于角度2:NodeJS与XAMPP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆