Angular-Cli骆驼案例名称 [英] Angular-Cli camelCase name
本文介绍了Angular-Cli骆驼案例名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
似乎当我使用angular cli通过此命令和组件名称来生成组件,服务等
It seems that when I used angular cli to generate components,services etc.by this command and name of component
ng g component myApp
它生成组件文件夹和其他文件,例如
It generate component folder and other files such as
my-app.component.ts
my-app.component.ts
代替myapp.component.ts
instead myapp.component.ts
我的问题是,是否有任何命令来生成带有camelCase名称的组件,服务等.
My question is,Is there any command to generate components,services etc. with camelCase name.
我为此进行了研究,但没有任何效果.
I research for it,but nothing works.
推荐答案
Angular Style Guide明确表示要使用my-app.component.ts
作为文件名.
Angular Style Guide explicitly says to use my-app.component.ts
for file names.
- 破折号(或"kebab-case"):文件名的描述性部分,组件选择器
参考: https://angular.io/guide/glossary
这篇关于Angular-Cli骆驼案例名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文