问题
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