Angular-Cli骆驼案例名称

san*_*eep 5 naming-conventions angular-cli angular

似乎当我使用angular cli通过此命令和组件名称生成组件,服务等时

ng g component myApp
Run Code Online (Sandbox Code Playgroud)

它生成组件文件夹和其他文件,例如

my-app.component.ts

而是myapp.component.ts

我的问题是,是否有任何使用camelCase名称生成组件,服务等的命令。

我为此进行了研究,但没有任何效果。

mru*_*ova 7

Angular Style Guide 明确指出my-app.component.ts用于文件名。

  • dash-case(或“kebab-case”):文件名的描述部分,组件选择器

参考:https : //angular.io/guide/glossary