如何在 angular cli 中执行 ng g application app 时更改默认组件和模块名称(app.module.ts 和 app.component.ts)

How to change default component and module name (app.module.ts and app.component.ts) while doing ng g application app in angular cli

我有一个 angular 工作区。我想创建一个具有不同模块和组件名称的应用程序,而不是 app.module.ts 或 app.component.ts。想要使用 angular cli 来做到这一点。

提前致谢:)

Angular CLI 无法做到这一点。 您需要通过创建自定义原理图来扩展它:https://angular.io/guide/schematics-authoring