Angular-CLI在项目库中创建组件

我有一个带有库的Angular项目。如何在该库项目中创建组件?

jsxzxuhu 回答:Angular-CLI在项目库中创建组件

使用--project标志。对于https://currencyconverterlive.com/1-usd-to-aed

示例

ng g c component-name --project=project-name
,

您可以从该库中打开命令提示符,然后键入命令:

ng generate component <name>

或者您可以这样做:

ng generate component <name> [options]
本文链接:https://www.f2er.com/3060057.html

大家都在问