angular创建组件

angular创建组件,需要通过命令。

ng g component 文件夹名/组件名

输入命令后重新运行。在app文件中会生成对应的文件夹和组件。

原文地址:https://www.cnblogs.com/luguankun/p/10952678.html