如何将现有项目转换为 angular-cli? [英] How can I convert an existing project to angular-cli?

查看:24
本文介绍了如何将现有项目转换为 angular-cli?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚尝试了 ng2-admin,它看起来很棒;所有的功能都非常好.如何将此项目转换为 angular-cli?

我尝试使用 ng init,但它会覆盖 app 文件夹中的现有代码.如何在不产生任何影响的情况下将此项目转换为 angular-cli?

I tried with ng init, but it is overwriting the existing code in the app folder. How can I convert this project to angular-cli without any impact?

推荐答案

只需在 angular-cli 中创建项目,然后将所有代码放在 app 文件夹 src/app 文件夹中.如果您的项目有,请导入外部依赖项.

just create project in angular-cli and than put your all code in app folder src/app folder. import external dependencies if your project have.

这篇关于如何将现有项目转换为 angular-cli?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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