angular cli中的--flat参数

添加--flat 参数,表示不创建单独的目录

例如

ng g c news/news-detail

会将文件创建在app/news/news-detail目录下

ng g c news/news-detail --flat

会将文件创建在app/news目录下

原文地址:https://www.cnblogs.com/modou/p/9426697.html