Angular-Cli camelCase name

百般思念 提交于 2019-12-10 14:54:30

问题


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

instead myapp.component.ts

My question is,Is there any command to generate components,services etc. with camelCase name.

I research for it,but nothing works.


回答1:


Angular Style Guide explicitly says to use my-app.component.ts for file names.

  • dash-case (or "kebab-case"): descriptive part of file names, component selectors

Reference: https://angular.io/guide/glossary



来源:https://stackoverflow.com/questions/44172438/angular-cli-camelcase-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!